:root {
    --neon-purple: #bc13fe;
    --deep-purple: #7a1fa2;
    --neon-blue: #00f3ff;
    --blood-red: #ff003c;
    --dark-bg: #000000;
    --accent-color: #bc13fe;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.disclaimer-bar {
    background: var(--blood-red);
    color: white;
    font-family: 'VT323', monospace;
    padding: 8px 0;
    position: fixed;
    top: 35px; /* Space for authorship bar */
    left: 0;
    width: 100%;
    z-index: 10001;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 0, 60, 0.4);
    border-bottom: 2px solid white;
}

.disclaimer-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.authorship-bar {
    background: #1a0033;
    color: #bc13fe;
    font-family: 'Fira Code', monospace;
    padding: 6px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10002;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid #bc13fe;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.authorship-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    padding-left: 100%;
}

body {
    background-color: var(--dark-bg);
    color: var(--neon-purple);
    font-family: 'Fira Code', monospace;
    overflow-x: hidden;
    margin: 0;
    padding-top: 75px; /* Space for both bars */
}

/* CRT Effect */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.5; /* Reduced for better readability on mobile */
}

@media (max-width: 768px) {
    body {
        padding-top: 30px; /* Reduzido pois escondemos a barra no mobile */
        font-size: 14px;
    }
    .authorship-bar {
        font-size: 0.6rem;
    }
    .disclaimer-content {
        font-size: 0.9rem;
        animation: marquee 15s linear infinite;
    }
    .text-4xl { font-size: 1.75rem !important; }
    .text-3xl { font-size: 1.5rem !important; }
    .text-2xl { font-size: 1.25rem !important; }
}

.stamp {
    position: absolute;
    transform: rotate(-15deg);
    border: 4px solid #ff003c;
    color: #ff003c;
    padding: 5px 15px;
    font-family: 'VT323', monospace;
    font-weight: bold;
    font-size: 1.5rem;
    text-transform: uppercase;
    opacity: 0.6;
    pointer-events: none;
    z-index: 50;
}

@media (max-width: 640px) {
    .stamp {
        font-size: 1.2rem;
        padding: 3px 10px;
        border-width: 2px;
    }
}

/* Glitch Signature Effect */
.signature-glitch {
    color: #bc13fe !important;
    font-weight: 900;
    position: relative;
    display: inline-block;
}

.signature-glitch::before,
.signature-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
}

.signature-glitch::before {
    left: 2px;
    text-shadow: -2px 0 #7a1fa2;
    clip: rect(44px, 450px, 56px, 0);
    animation: signature-glitch-1 3s infinite linear alternate-reverse;
}

.signature-glitch::after {
    left: -2px;
    text-shadow: -2px 0 #bc13fe;
    clip: rect(44px, 450px, 56px, 0);
    animation: signature-glitch-2 2s infinite linear alternate-reverse;
}

@keyframes signature-glitch-1 {
    0% { clip: rect(20px, 9999px, 40px, 0); transform: skew(0.5deg); }
    20% { clip: rect(60px, 9999px, 80px, 0); transform: skew(-0.5deg); }
    40% { clip: rect(10px, 9999px, 30px, 0); transform: skew(0.8deg); }
    60% { clip: rect(50px, 9999px, 70px, 0); transform: skew(-0.8deg); }
    80% { clip: rect(30px, 9999px, 50px, 0); transform: skew(0.3deg); }
    100% { clip: rect(70px, 9999px, 90px, 0); transform: skew(-0.3deg); }
}

@keyframes signature-glitch-2 {
    0% { clip: rect(70px, 9999px, 90px, 0); transform: skew(-0.3deg); }
    20% { clip: rect(30px, 9999px, 50px, 0); transform: skew(0.3deg); }
    40% { clip: rect(50px, 9999px, 70px, 0); transform: skew(-0.8deg); }
    60% { clip: rect(10px, 9999px, 30px, 0); transform: skew(0.8deg); }
    80% { clip: rect(60px, 9999px, 80px, 0); transform: skew(-0.5deg); }
    100% { clip: rect(20px, 9999px, 40px, 0); transform: skew(0.5deg); }
}

.signature-sub {
    color: white !important;
    opacity: 1;
    letter-spacing: 0.15em;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    border-top: 1px solid rgba(188, 19, 254, 0.3);
    padding-top: 4px;
    display: inline-block;
}

.alert-box {
    background: rgba(255, 0, 60, 0.1);
    border: 1px solid #ff003c;
    color: #ff003c;
    padding: 1.5rem;
    font-family: 'VT323', monospace;
    position: relative;
    overflow: hidden;
}

.alert-box::before {
    content: 'ALERTA_DE_FRAUDE';
    position: absolute;
    top: 0;
    left: 0;
    background: #ff003c;
    color: white;
    padding: 2px 10px;
    font-size: 0.8rem;
}

/* Glitch Effect */
.glitch { position: relative; }
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Hacker Signature Effect */
.signature-main-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.signature-main-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(188, 19, 254, 0.2), transparent);
    animation: signature-shine 3s infinite;
}

@keyframes signature-shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.hacker-signature {
    position: relative;
    display: inline-block;
    text-shadow: 0 0 15px rgba(188, 19, 254, 0.7);
    letter-spacing: 2px;
    animation: hacker-flicker 3s infinite;
}

.hacker-signature::before,
.hacker-signature::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.hacker-signature::before {
    left: 2px;
    text-shadow: -2px 0 #00f3ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: hacker-glitch-1 2s infinite linear alternate-reverse;
}

.hacker-signature::after {
    left: -2px;
    text-shadow: -2px 0 #ff003c;
    clip: rect(44px, 450px, 56px, 0);
    animation: hacker-glitch-2 3s infinite linear alternate-reverse;
}

@keyframes hacker-flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% { opacity: 1; }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% { opacity: 0.4; }
}

@keyframes hacker-glitch-1 {
    0% { clip: rect(10px, 9999px, 20px, 0); transform: skew(0.5deg); }
    10% { clip: rect(40px, 9999px, 50px, 0); transform: skew(-0.5deg); }
    20% { clip: rect(20px, 9999px, 30px, 0); transform: skew(0.8deg); }
    30% { clip: rect(60px, 9999px, 70px, 0); transform: skew(-0.8deg); }
    40% { clip: rect(10px, 9999px, 20px, 0); transform: skew(0.3deg); }
    50% { clip: rect(80px, 9999px, 90px, 0); transform: skew(-0.3deg); }
    60% { clip: rect(50px, 9999px, 60px, 0); transform: skew(0.5deg); }
    70% { clip: rect(30px, 9999px, 40px, 0); transform: skew(-0.5deg); }
    80% { clip: rect(90px, 9999px, 100px, 0); transform: skew(0.8deg); }
    90% { clip: rect(20px, 9999px, 30px, 0); transform: skew(-0.8deg); }
    100% { clip: rect(10px, 9999px, 20px, 0); transform: skew(0.3deg); }
}

@keyframes hacker-glitch-2 {
    0% { clip: rect(90px, 9999px, 100px, 0); transform: skew(-0.3deg); }
    10% { clip: rect(70px, 9999px, 80px, 0); transform: skew(0.3deg); }
    20% { clip: rect(50px, 9999px, 60px, 0); transform: skew(-0.8deg); }
    30% { clip: rect(30px, 9999px, 40px, 0); transform: skew(0.8deg); }
    40% { clip: rect(10px, 9999px, 20px, 0); transform: skew(-0.5deg); }
    50% { clip: rect(80px, 9999px, 90px, 0); transform: skew(0.5deg); }
    60% { clip: rect(40px, 9999px, 50px, 0); transform: skew(-0.3deg); }
    70% { clip: rect(60px, 9999px, 70px, 0); transform: skew(0.3deg); }
    80% { clip: rect(20px, 9999px, 30px, 0); transform: skew(-0.8deg); }
    90% { clip: rect(10px, 9999px, 20px, 0); transform: skew(0.8deg); }
    100% { clip: rect(90px, 9999px, 100px, 0); transform: skew(-0.5deg); }
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-blue);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    100% { clip: rect(41px, 9999px, 86px, 0); }
}

#canvas-binary {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.2;
}

.terminal-btn {
    background: transparent;
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
    padding: 12px 24px;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
    text-transform: uppercase;
}

.terminal-btn:hover {
    background: var(--neon-purple);
    color: var(--dark-bg);
    box-shadow: 0 0 20px var(--neon-purple);
}

.card {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(188, 19, 254, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.4);
    transform: translateY(-10px) scale(1.02);
    z-index: 50;
}

.stat-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(5, 5, 5, 1) 100%);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    transform: scale(1.05) translateY(-5px);
    filter: brightness(1.2);
    box-shadow: 0 0 20px var(--accent-color);
}

/* Dossier Cards Styling */
.dossier-card {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(0, 0, 0, 1) 100%);
    border: 1px solid rgba(188, 19, 254, 0.15);
    border-left: 4px solid var(--blood-red);
    position: relative;
    transition: all 0.4s ease;
}

.dossier-card:hover {
    border-color: var(--blood-red);
    box-shadow: 0 0 40px rgba(255, 0, 60, 0.15);
    transform: translateX(5px);
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }
    .dossier-card {
        padding: 1.5rem !important;
    }
    .stat-card {
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 1rem;
    }
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile Flowchart Fix */
@media (max-width: 768px) {
    .flow-node {
        padding: 1.5rem !important;
    }
    .flow-node h4 {
        font-size: 1.25rem !important;
    }
    .flow-node .text-4xl {
        font-size: 2rem !important;
    }
    /* Adjust connector line for mobile */
    .absolute.left-8 {
        left: 1.5rem !important;
    }
}

/* Hacker typing effect */
.typing::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Novas Seções de Detalhes de Esquema */
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.map-container {
    position: relative;
    background: #050505;
    border: 1px solid var(--deep-purple);
    height: 500px;
    overflow: hidden;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .map-container {
        height: 350px;
    }
}

.map-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--neon-purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-purple);
    cursor: pointer;
    z-index: 20;
}

.map-node:hover::after {
    content: attr(data-label);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neon-purple);
    color: black;
    padding: 2px 8px;
    font-size: 10px;
    white-space: nowrap;
    font-weight: bold;
}

.map-line {
    position: absolute;
    background: rgba(188, 19, 254, 0.3);
    height: 1px;
    transform-origin: 0 0;
    z-index: 10;
}

.guide-step {
    border-left: 2px solid var(--deep-purple);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 2rem;
}

.guide-step::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--dark-bg);
    border: 2px solid var(--neon-purple);
    border-radius: 50%;
}

.jucesp-tag {
    background: #ff003c;
    color: white;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Chapter Title Animation */
.chapter-title {
    letter-spacing: 0.2em;
    text-shadow: 0 0 10px var(--neon-purple);
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    from { text-shadow: 0 0 5px var(--neon-purple); }
    to { text-shadow: 0 0 20px var(--neon-purple), 0 0 30px var(--deep-purple); }
}

.scanline {
    width: 100%;
    height: 100px;
    z-index: 9998;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
    position: fixed;
    bottom: 100%;
    animation: scanline 8s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { bottom: 100%; }
    100% { bottom: -100px; }
}

/* Evidence Image Frame */
.evidence-image-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 350px; /* Altura fixa para manter o padrão nos cards */
    margin: 0 auto;
    background: #fff;
    padding: 12px;
    padding-bottom: 45px;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.1);
    transform: rotate(-1deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.evidence-image-frame:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(188, 19, 254, 0.3);
}

.evidence-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Garante que a imagem inteira apareça sem cortar */
    background: #f0f0f0; /* Fundo cinza claro caso a imagem seja menor */
    display: block;
    filter: sepia(0.1) contrast(1.05);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Fita adesiva simulada */
.evidence-tape {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 5;
}

.evidence-id-tag {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-family: 'VT323', monospace;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    opacity: 0.7;
}

.view-label {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: var(--blood-red);
    color: white;
    font-size: 8px;
    font-weight: bold;
    padding: 2px 6px;
    z-index: 4;
    transform: rotate(2deg);
}

/* Modal Styles */
#modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

@media (max-width: 640px) {
    #modal-overlay { padding: 0.5rem; }
}

/* Destructive Glitch Effect for Images */
.glitch-img-container {
    position: relative;
    overflow: hidden;
    background: #000;
}

.glitch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%);
    transition: all 0.5s;
}

.card:hover .glitch-img {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.05);
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://media.giphy.com/media/oEI9uWUqWMrBK/giphy.gif'); /* Static/Noise overlay */
    opacity: 0;
    mix-blend-mode: overlay;
    pointer-events: none;
    transition: opacity 0.3s;
}

.card:hover .glitch-overlay {
    opacity: 0.3;
    animation: glitch-noise 0.2s infinite;
}

@keyframes glitch-noise {
    0% { transform: translate(0,0); }
    10% { transform: translate(-5px,-5px); }
    20% { transform: translate(5px,5px); }
    30% { transform: translate(-5px,5px); }
    40% { transform: translate(5px,-5px); }
    50% { transform: translate(-10px,0); }
    100% { transform: translate(0,0); }
}

.target-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--blood-red);
    color: white;
    padding: 4px 12px;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    transform: skew(-15deg);
    z-index: 30;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
    animation: tag-pulse 1s infinite alternate;
}

@keyframes tag-pulse {
    from { transform: skew(-15deg) scale(1); box-shadow: 4px 4px 0 rgba(0,0,0,0.5); }
    to { transform: skew(-15deg) scale(1.05); box-shadow: 6px 6px 0 rgba(255,0,60,0.3); }
}

.info-label {
    font-size: 10px;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 2px;
    font-family: 'Fira Code', monospace;
}

/* Hashes Table Legibility Improvements */
#security-info-card table {
    border-spacing: 0;
    width: 100%;
}

#security-info-card th {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

#security-info-card td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

#security-info-card .font-mono {
    font-family: 'Fira Code', 'Courier New', monospace;
    letter-spacing: 0.05em;
}

#security-info-card tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

#security-info-card .break-all {
    word-break: break-all;
    line-height: 1.6;
    color: #a1a1aa; /* text-zinc-400 */
}

#security-info-card td:first-child {
    color: #ffffff;
    font-weight: 600;
}

.info-value {
    font-size: 14px;
    color: white;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    border-bottom: 1px solid rgba(188, 19, 254, 0.2);
    padding-bottom: 4px;
}

.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #000; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--neon-purple); }
.timeline-item {
    position: relative;
    padding-bottom: 3rem;
    border-left: 2px solid rgba(188, 19, 254, 0.1);
    margin-left: 40px;
    padding-left: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateX(-20px);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:hover {
    border-left-color: var(--neon-purple);
    background: rgba(188, 19, 254, 0.03);
    transform: translateX(10px);
}

.timeline-date {
    position: absolute;
    left: -150px;
    top: 0;
    width: 140px;
    text-align: right;
    font-family: 'VT323', monospace;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(90deg, var(--deep-purple), var(--neon-purple));
    padding: 6px 12px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1;
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
    box-shadow: 8px 8px 0 rgba(188, 19, 254, 0.3);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.timeline-item:hover .timeline-date {
    transform: scale(1.1) translateX(-5px);
    box-shadow: 12px 12px 0 rgba(188, 19, 254, 0.5);
    background: var(--neon-purple);
}

.timeline-item.critical .timeline-date {
    background: linear-gradient(90deg, #990000, var(--blood-red));
    box-shadow: 8px 8px 0 rgba(255, 0, 60, 0.3);
}

.timeline-item.critical:hover .timeline-date {
    background: var(--blood-red);
    box-shadow: 12px 12px 0 rgba(255, 0, 60, 0.5);
}

@media (max-width: 1024px) {
    .timeline-item {
        margin-left: 10px;
        padding-left: 20px;
    }
    .timeline-date {
        position: relative;
        left: 0;
        width: 100%;
        text-align: left;
        margin-bottom: 1rem;
        display: block;
        font-size: 1.4rem;
        clip-path: none;
        padding: 4px 12px;
        box-shadow: 4px 4px 0 var(--neon-purple);
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -13px;
    top: 5px;
    width: 24px;
    height: 24px;
    background: var(--dark-bg);
    border: 4px solid var(--neon-purple);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 10px var(--neon-purple);
    transition: all 0.3s;
}

.timeline-item:hover::before {
    transform: scale(1.2);
    background: var(--neon-purple);
}

.timeline-item.critical::before {
    border-color: var(--blood-red);
    box-shadow: 0 0 15px var(--blood-red);
}

.timeline-item.critical:hover::before {
    background: var(--blood-red);
}

.flow-node {
    border-left: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
}

.flow-node.visible {
    opacity: 1;
    transform: translateY(0);
}

.flow-node.active {
    border-left-color: #ff003c;
    background: rgba(255, 0, 60, 0.1);
    transform: scale(1.02) translateX(10px);
    box-shadow: -10px 0 20px rgba(255, 0, 60, 0.1);
}

/* Melhorias Mobile Gerais */
@media (max-width: 640px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
    #hero-title { font-size: 2.5rem !important; line-height: 1.1; word-break: break-word; }
    #prologue { padding-top: 4rem; padding-bottom: 4rem; min-height: auto; }
    .alert-box { padding: 1rem !important; margin-bottom: 1.5rem !important; }
    #hero-summary { font-size: 1.1rem !important; line-height: 1.4 !important; }
    
    .terminal-btn { width: 100%; text-align: center; font-size: 1.1rem; padding: 0.8rem; }
    .stat-card { padding: 1.25rem !important; }
    .stat-card .text-3xl { font-size: 1.75rem !important; }
    .section-reveal { transform: translateY(20px); }
    .chapter-title { font-size: 1.75rem !important; }
    
    #terminal-output {
        height: 180px !important;
        font-size: 11px !important;
    }
    
    /* Ajuste para o Fluxograma em mobile */
    .flow-node { padding: 1.25rem !important; border-radius: 1rem !important; }
    .flow-node h4 { font-size: 1.1rem !important; }
    .flow-node .text-4xl { font-size: 1.75rem !important; }
    .flow-node .w-16.h-16 { width: 3rem !important; height: 3rem !important; min-width: 3rem; }
    
    /* Adjust connector line for mobile - more precise */
    .absolute.left-8.top-16 {
        left: 1.5rem !important;
        top: 4rem !important;
    }
}

/* Better Mobile Grid for Evidence Vault */
#evidence-vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    #evidence-vault-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .stamp {
        font-size: 0.9rem;
        padding: 2px 8px;
        top: -5px !important;
        left: -5px !important;
    }
}

/* Envolvidos List Mobile Fix */
#envolvidos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    #envolvidos-list {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}

/* Modal Responsiveness */
#modal-body img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

#modal-body video {
    width: 100% !important;
    max-height: 60vh !important;
}

@media (max-width: 768px) {
    #modal-overlay {
        padding: 0.5rem;
    }
    #modal-body .p-4 {
        padding: 0.5rem !important;
    }
    #modal-footer {
        padding: 1rem !important;
    }
    #modal-title {
        font-size: 1.1rem !important;
    }
}

/* Improved Touch Targets for Mobile */
button, 
.terminal-btn, 
[onclick] {
    min-height: 44px;
    touch-action: manipulation;
}

/* Hero Section Mobile Fine-tuning */
@media (max-width: 640px) {
    #prologue .grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    #prologue .p-6 {
        padding: 1rem !important;
    }
    #hero-title {
        font-size: 2.25rem !important;
        letter-spacing: -0.05em;
    }
}

/* Mobile Optimization for Countdown */
@media (max-width: 640px) {
    #countdown-overlay {
        padding: 1rem !important;
        justify-content: flex-start !important;
        padding-top: 15% !important;
    }
    
    #countdown-overlay .max-w-4xl {
        gap: 1.5rem !important;
    }

    #countdown-overlay h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }

    #countdown-overlay .grid {
        gap: 0.5rem !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #countdown-overlay .grid > div {
        padding: 1rem 0.5rem !important;
    }

    #countdown-overlay .grid .text-3xl {
        font-size: 1.75rem !important;
    }

    #cd-message {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        padding: 0 0.5rem !important;
    }
}

/* Fix for horizontal scroll on mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Optimize Font Loading */
@font-face {
    font-family: 'Fira Code';
    font-display: swap;
}
@font-face {
    font-family: 'VT323';
    font-display: swap;
}

/* Signature Shine Animation */
.signature-main-text {
    position: relative;
    overflow: hidden;
}

.signature-main-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(188, 19, 254, 0.2), transparent);
    animation: signature-shine 3s infinite;
}

@keyframes signature-shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

/* Hacker Typing for Addresses */
#hacker-addresses {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    text-align: center;
    z-index: 100;
    font-family: 'Fira Code', monospace;
    pointer-events: none;
    min-height: 2em; /* Estabilidade visual */
}

.hacker-address-item {
    color: #bc13fe;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(188, 19, 254, 0.6);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: block;
}

.hacker-address-item.visible {
    opacity: 1;
}

.hacker-address-item .typing-cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: #bc13fe;
    margin-left: 6px;
    vertical-align: middle;
    animation: blink 1s infinite;
}

/* Network Dots */
.network-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--neon-purple);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--neon-purple);
    animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(2.5); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.surveillance-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(188, 19, 254, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(188, 19, 254, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 5;
}

#map-background iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(1) hue-rotate(180deg) brightness(0.5) contrast(1.5);
}

@media (max-width: 640px) {
    /* Ajuste para Dossier Cards em mobile */
    .dossier-card { padding: 1.25rem !important; }
    .dossier-card h3 { font-size: 1.5rem !important; }
    .chart-container { height: 200px !important; }

    /* Modal fix for mobile */
    #modal-overlay { padding: 0.5rem; }
    #modal-overlay > div { 
        width: 95% !important; 
        max-height: 95vh !important; 
        margin: auto;
    }
    .scam-modal-content { padding: 1rem; }
    .scam-title { font-size: 1.25rem !important; word-break: break-word; }
    .scam-badge { font-size: 0.8rem; padding: 2px 8px; }
    .scam-alert-box { font-size: 0.8rem; gap: 8px; }
    .scam-alert-box .text-3xl { font-size: 1.5rem; }
    
    /* PDF iframe mobile fix */
    iframe { height: 60vh !important; }
}

/* Estilos para a Tabela de Hashes */
#security-info-card table {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

#security-info-card th {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.05em;
}

#security-info-card td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

#security-info-card tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    #security-info-card table {
        font-size: 11px !important;
    }
    #security-info-card td, #security-info-card th {
        padding: 0.75rem 0.5rem !important;
    }
}

.evidence-card {
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(188, 19, 254, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.evidence-card:hover {
    border-color: var(--blood-red);
    background: rgba(255, 0, 60, 0.05);
    transform: translateY(-5px);
}

.type-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 8px;
    font-weight: bold;
    padding: 2px 6px;
    text-transform: uppercase;
    font-family: 'Fira Code', monospace;
}

.type-pdf { background: #ff003c; color: white; }
.type-video { background: #bc13fe; color: white; }
.type-photo { background: #00f3ff; color: black; }

.evidence-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Scam Exposure Modal Styles */
.scam-modal-content {
    background: linear-gradient(180deg, #1a0000 0%, #000 100%);
    border: 2px solid #ff003c;
    box-shadow: 0 0 50px rgba(255, 0, 60, 0.3);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.scam-modal-header {
    border-bottom: 2px solid #ff003c;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { border-color: #ff003c; box-shadow: 0 0 10px rgba(255, 0, 60, 0.5); }
    50% { border-color: #ff5f7e; box-shadow: 0 0 20px rgba(255, 0, 60, 0.8); }
    100% { border-color: #ff003c; box-shadow: 0 0 10px rgba(255, 0, 60, 0.5); }
}

.scam-badge {
    background: #ff003c;
    color: white;
    padding: 4px 12px;
    font-weight: 900;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.scam-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1;
}

.scam-section-title {
    font-family: 'VT323', monospace;
    color: #ff003c;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scam-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #ff003c, transparent);
}

.scam-details {
    font-family: 'Fira Code', monospace;
    color: #ffb3c1;
    line-height: 1.6;
    background: rgba(255, 0, 60, 0.05);
    padding: 1.5rem;
    border-left: 4px solid #ff003c;
    margin-bottom: 2rem;
}

.scam-alert-box {
    background: rgba(255, 0, 60, 0.2);
    border: 1px dashed #ff003c;
    padding: 1rem;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0% { transform: translate(0,0); }
    25% { transform: translate(2px,2px); }
    50% { transform: translate(-2px,2px); }
    75% { transform: translate(2px,-2px); }
    100% { transform: translate(0,0); }
}

@media (max-width: 640px) {
    #modal-overlay { padding: 0.25rem; }
    #modal-overlay > div { 
        width: 100% !important; 
        max-height: 100vh !important; 
        margin: 0;
        border-radius: 0;
    }
    .scam-modal-content { 
        padding: 1rem; 
        padding-top: 3.5rem; /* Space for the absolute close button */
    }
    .scam-title { font-size: 1.4rem !important; word-break: break-word; }
    .scam-details { font-size: 0.85rem; padding: 1rem; margin-bottom: 1.5rem; }
    .scam-modal-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 0.75rem; 
        margin-bottom: 1.5rem;
    }
    .scam-badge { font-size: 0.8rem; padding: 2px 8px; }
    iframe { height: 70vh !important; }
    
    /* Close button adjustment for mobile */
     #modal-overlay button.absolute {
         top: 0.75rem;
         right: 0.75rem;
         font-size: 0.7rem;
         padding: 4px 8px;
         background: rgba(0,0,0,0.8);
         border-color: #ff003c;
     }

     #modal-footer {
         padding: 1rem;
     }
     #modal-title {
         font-size: 1.1rem;
     }
     #modal-desc {
          font-size: 0.75rem;
      }

      /* Adjust icon and header elements in modal */
      .scam-modal-content .w-24.h-24 {
          width: 4.5rem;
          height: 4.5rem;
          text-size-adjust: none;
      }
      .scam-modal-content .text-6xl {
          font-size: 2.5rem;
      }
      .scam-alert-box .text-3xl {
          font-size: 1.5rem;
      }
}

/* Timeline Mobile Fix */
@media (max-width: 768px) {
    .timeline-item {
        margin-left: 15px;
        padding-left: 25px;
        padding-bottom: 2rem;
    }
    
    .timeline-date {
        position: relative;
        left: 0;
        width: fit-content;
        margin-bottom: 15px;
        text-align: left;
        display: block;
        font-size: 1.2rem;
        padding: 4px 10px;
        clip-path: none; /* Simplificar no mobile */
        box-shadow: 4px 4px 0 rgba(188, 19, 254, 0.3);
    }

    .timeline-item:hover .timeline-date {
        transform: none;
    }
    
    .timeline-item:hover {
        transform: none;
    }
}

/* Modal and Content Fixes for small screens */
@media (max-width: 640px) {
    .evidence-grid {
        grid-template-columns: 1fr !important;
    }
    
    .evidence-image-frame {
        max-width: 100%;
        height: auto;
        min-height: 250px;
    }
}

