:root {
    --neon-blue: #00f2ff;
    --neon-purple: #bc13fe;
    --neon-green: #00ff41;
    --dark-bg: #0a0a0c;
}

body {
    background-color: var(--dark-bg);
    font-family: 'JetBrains Mono', monospace;
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(0, 242, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    min-height: 100vh;
    color: #fff;
}

.cyber-font {
    font-family: 'Orbitron', sans-serif;
}

.glass {
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 242, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.neon-border-blue {
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3), inset 0 0 5px rgba(0, 242, 255, 0.2);
}

.neon-text-blue {
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.8);
}

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

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

.cyber-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 242, 255, 0.3);
    color: #fff;
    transition: all 0.3s ease;
}

.cyber-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
    background: rgba(0, 0, 0, 0.6);
}

.btn-cyber {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0% 30%);
    border: none;
}

.btn-cyber:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
}

.flicker {
    animation: flicker 2s infinite;
}

@keyframes 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; }
}

.bg-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(188, 19, 254, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* Video Mirror Styling */
#camera-preview {
    transform: scaleX(-1);
    filter: grayscale(0.2) contrast(1.1) brightness(1.1);
}

.video-container {
    position: relative;
    border: 2px solid var(--neon-blue);
    overflow: hidden;
}

.hud-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: 
        linear-gradient(rgba(0, 242, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 20;
}

.hud-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: var(--neon-blue);
    border-style: solid;
}

#statusMessage {
    font-size: 10px;
    color: var(--neon-blue);
}

.tracking-widest {
    letter-spacing: 0.2em;
}
