* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 100%);
    color: #ff0000;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, rgba(255, 0, 0, 0.03) 0px, transparent 1px, transparent 2px, rgba(255, 0, 0, 0.03) 3px),
        repeating-linear-gradient(90deg, rgba(255, 0, 0, 0.03) 0px, transparent 1px, transparent 2px, rgba(255, 0, 0, 0.03) 3px);
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(20, 20, 20, 0.8);
    border: 3px solid #ff0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3), inset 0 0 30px rgba(255, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        transparent,
        transparent,
        rgba(255, 0, 0, 0.8),
        rgba(255, 50, 50, 1),
        rgba(255, 0, 0, 0.8),
        transparent,
        transparent,
        transparent
    );
    animation: electricBorderRotate 4s linear infinite;
    z-index: -1;
}

header::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: rgba(20, 20, 20, 0.8);
    clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
    z-index: -1;
}

@keyframes electricBorderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

h1 {
    font-size: 3em;
    color: #ff0000;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8), 0 0 40px rgba(255, 0, 0, 0.4);
    margin-bottom: 10px;
    letter-spacing: 5px;
    position: relative;
    animation: electricGlitch 3s infinite, electricPulse 2s ease-in-out infinite;
    font-family: 'Impact', 'Arial Black', 'Courier New', monospace;
    font-weight: 900;
    text-transform: uppercase;
    -webkit-text-stroke: 1px rgba(255, 0, 0, 0.5);
}

h1::before,
h1::after {
    content: attr(id);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

h1::before {
    color: #00ffff;
    animation: glitchLeft 2s infinite;
    text-shadow: 2px 0 #00ffff;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

h1::after {
    color: #ff00ff;
    animation: glitchRight 3s infinite;
    text-shadow: -2px 0 #ff00ff;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes electricGlitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(2px, -2px);
    }
    60% {
        transform: translate(-2px, -2px);
    }
    80% {
        transform: translate(2px, 2px);
    }
}

@keyframes electricPulse {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(255, 0, 0, 0.8),
            0 0 40px rgba(255, 0, 0, 0.4),
            0 0 60px rgba(255, 0, 0, 0.2);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(255, 0, 0, 1),
            0 0 60px rgba(255, 0, 0, 0.8),
            0 0 90px rgba(255, 0, 0, 0.6),
            0 0 120px rgba(255, 0, 0, 0.4);
    }
}

@keyframes glitchLeft {
    0%, 90%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    92% {
        transform: translate(-5px, 0);
        opacity: 0.8;
    }
    94% {
        transform: translate(5px, 0);
        opacity: 0.8;
    }
}

@keyframes glitchRight {
    0%, 85%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    87% {
        transform: translate(5px, 0);
        opacity: 0.8;
    }
    89% {
        transform: translate(-5px, 0);
        opacity: 0.8;
    }
}

.subtitle {
    color: #999999;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.description {
    color: #999999;
    font-size: 0.9em;
    margin-top: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.powered-by {
    color: #ffffff;
    font-size: 0.75em;
    margin-top: 20px;
    opacity: 0.8;
    letter-spacing: 1px;
}

.stats-counters {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.counter-box {
    text-align: center;
    padding: 30px 40px;
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid #ffffff;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.counter-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 30%,
        rgba(255, 0, 0, 0.8) 50%,
        rgba(255, 50, 50, 1) 60%,
        rgba(255, 0, 0, 0.8) 70%,
        transparent 100%
    );
    animation: redLightSweep 3s linear infinite;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
}

.counter-box::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 0, 0, 1) 50%,
        rgba(255, 100, 100, 1) 60%,
        transparent 100%
    );
    animation: redLightSweep 3s linear infinite;
    box-shadow: 0 0 20px rgba(255, 0, 0, 1), 0 0 40px rgba(255, 0, 0, 0.8);
    z-index: 2;
}

@keyframes redLightSweep {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.counter-label {
    color: #999999;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.counter-number {
    color: #ff0000;
    font-size: 3em;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 0, 0, 0.6), 0 0 30px rgba(255, 0, 0, 0.4);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 0, 0, 0.9), 0 0 50px rgba(255, 0, 0, 0.6), 0 0 70px rgba(255, 0, 0, 0.4);
        transform: scale(1.05);
    }
}

.counter-box.public .counter-number {
    color: #00ff00;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    animation: pulseGlowGreen 2s ease-in-out infinite;
}

@keyframes pulseGlowGreen {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 255, 0, 0.6), 0 0 30px rgba(0, 255, 0, 0.4);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 255, 0, 0.9), 0 0 50px rgba(0, 255, 0, 0.6), 0 0 70px rgba(0, 255, 0, 0.4);
        transform: scale(1.05);
    }
}

.counter-box.private .counter-number {
    color: #0066ff;
    text-shadow: 0 0 20px rgba(0, 102, 255, 0.6);
    animation: pulseGlowBlue 2s ease-in-out infinite;
}

@keyframes pulseGlowBlue {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 102, 255, 0.6), 0 0 30px rgba(0, 102, 255, 0.4);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 102, 255, 0.9), 0 0 50px rgba(0, 102, 255, 0.6), 0 0 70px rgba(0, 102, 255, 0.4);
        transform: scale(1.05);
    }
}

.counter-box.latest .counter-number {
    color: #ffaa00;
    text-shadow: 0 0 20px rgba(255, 170, 0, 0.6);
    animation: pulseGlowOrange 2s ease-in-out infinite;
}

@keyframes pulseGlowOrange {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 170, 0, 0.6), 0 0 30px rgba(255, 170, 0, 0.4);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 170, 0, 0.9), 0 0 50px rgba(255, 170, 0, 0.6), 0 0 70px rgba(255, 170, 0, 0.4);
        transform: scale(1.05);
    }
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ffffff;
    color: #ffffff;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    transform: translateY(-2px);
}

.btn.active {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.7), inset 0 0 20px rgba(255, 0, 0, 0.2);
}

.btn span {
    position: relative;
    z-index: 1;
}

.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.leak-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.leak-card {
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid #ffffff;
    padding: 25px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
    transition: all 0.3s;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 95% 100%, 0 100%);
    position: relative;
}

.leak-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0000, #00ff00, #0066ff, #ff0000);
    background-size: 400% 400%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.leak-card:hover::before {
    opacity: 1;
    animation: borderGlow 3s linear infinite;
}

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

.leak-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 50px rgba(255, 0, 0, 0.4);
}

.leak-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.leak-title {
    font-size: 1.3em;
    color: #ff0000;
    font-weight: bold;
    margin-bottom: 5px;
}

.leak-domain {
    color: #999999;
    font-size: 0.9em;
}

.sector-badge {
    padding: 5px 15px;
    border: 1px solid;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

.sector-badge.public {
    border-color: #00ff00;
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

.sector-badge.private {
    border-color: #0066ff;
    color: #0066ff;
    background: rgba(0, 102, 255, 0.1);
}

.economic-sector {
    margin-top: 8px;
    font-size: 0.7em;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.leak-info {
    margin: 15px 0;
}

.info-row {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
}

.info-label {
    color: #999999;
    min-width: 130px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.info-value {
    color: #ff0000;
    flex: 1;
}

.threat-actor {
    color: #ff0000;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.evidence-section {
    margin-top: 20px;
}

.evidence-title {
    color: #999999;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.evidence-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.evidence-placeholder {
    background: rgba(255, 0, 0, 0.1);
    border: 1px dashed #ffffff;
    padding: 30px;
    text-align: center;
    color: #999999;
    font-size: 0.8em;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.source-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
    transition: all 0.3s;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

.source-link:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.no-leaks {
    text-align: center;
    padding: 100px 20px;
    color: #999999;
    font-size: 1.5em;
}

.stats-section {
    margin: 40px 0 60px 0;
    padding: 30px;
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid #ffffff;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}

.stats-title {
    text-align: center;
    color: #ff0000;
    font-size: 1.5em;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.chart-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(0, 255, 0, 0.3);
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 10px;
}

canvas {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.chart-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999999;
    font-size: 0.9em;
}

.legend-color {
    width: 20px;
    height: 20px;
    border: 1px solid #ffffff;
}

.legend-label {
    flex: 1;
}

.legend-value {
    color: #ff0000;
    font-weight: bold;
}

.search-section {
    margin: 40px 0;
    padding: 30px;
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid #ffffff;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}

.search-title {
    text-align: center;
    color: #ff0000;
    font-size: 1.2em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #ffffff;
    color: #ff0000;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    letter-spacing: 1px;
    outline: none;
    transition: all 0.3s;
}

.search-input::placeholder {
    color: #999999;
}

.search-input:focus {
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.search-results-count {
    text-align: center;
    color: #999999;
    margin-top: 15px;
    font-size: 0.9em;
}

.search-results-count span {
    color: #ff0000;
    font-weight: bold;
}

.disclaimer {
    margin-top: 60px;
    padding: 30px;
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid #ffffff;
    border-left: 4px solid #ff0000;
}

.disclaimer-title {
    color: #ff0000;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.disclaimer-text {
    color: #999999;
    line-height: 1.8;
    font-size: 0.9em;
}

.inspired-by {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #999999;
    font-size: 0.85em;
    text-align: center;
}

.inspired-by a {
    color: #ff0000;
    text-decoration: none;
    transition: all 0.3s;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.inspired-by a:hover {
    color: #ff3333;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    .leak-grid {
        grid-template-columns: 1fr;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Evidence Lightbox Overlay Styles */
.evidence-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.evidence-lightbox-overlay.active {
    display: flex;
}

.evidence-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.evidence-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border: 3px solid #ff0000;
    box-shadow: 
        0 0 40px rgba(255, 0, 0, 0.8),
        0 0 80px rgba(255, 0, 0, 0.5),
        inset 0 0 30px rgba(255, 0, 0, 0.2);
    position: relative;
}

/* Red corner accents */
.evidence-lightbox-content::before,
.evidence-lightbox-content::after,
.evidence-lightbox-image::before,
.evidence-lightbox-image::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid #ff0000;
    z-index: 1;
    pointer-events: none;
}

.evidence-lightbox-content::before {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
    box-shadow: -5px -5px 15px rgba(255, 0, 0, 0.6);
}

.evidence-lightbox-content::after {
    top: -10px;
    right: -10px;
    border-left: none;
    border-bottom: none;
    box-shadow: 5px -5px 15px rgba(255, 0, 0, 0.6);
}

.evidence-lightbox-image::before {
    bottom: -10px;
    left: -10px;
    border-right: none;
    border-top: none;
    box-shadow: -5px 5px 15px rgba(255, 0, 0, 0.6);
}

.evidence-lightbox-image::after {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
    box-shadow: 5px 5px 15px rgba(255, 0, 0, 0.6);
}

.evidence-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
    color: #ffffff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    z-index: 2;
}

.evidence-lightbox-close:hover {
    background: rgba(255, 0, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Make evidence images clickable */
.evidence-images img {
    cursor: pointer;
    transition: all 0.3s;
}

.evidence-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    filter: brightness(1.2);
}

/* Prevent body scroll when overlay is active */
body.lightbox-active {
    overflow: hidden;
}

@media (max-width: 768px) {
    .evidence-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .evidence-lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
}
