@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Inter:wght@400;700&display=swap');

:root {
    --bg-dark: #05050a;
    --panel-bg: rgba(13, 20, 35, 0.9);
    --accent-blue: #0077ff;
    --accent-cyan: #00f2ff;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

#matrix {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.2;
}

#overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 10, 20, 0.98);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--accent-cyan);
    font-family: 'Share Tech Mono', monospace;
    padding: 20px;
}

.loader {
    border: 4px solid #1a1a2e;
    border-top: 4px solid var(--accent-cyan);
    border-radius: 50%;
    width: 60px; height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 20px var(--accent-cyan);
}

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

.card {
    width: 100%;
    max-width: 380px;
    background: var(--panel-bg);
    border: 1px solid #1e3a5f;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1), 0 0 20px rgba(0, 119, 255, 0.2);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.profile {
    display: flex; align-items: center; gap: 15px;
    background: rgba(0,0,0,0.5); padding: 12px; border-radius: 15px; margin-bottom: 20px;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.profile img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--accent-cyan); object-fit: cover; }

.video-container { width: 100%; height: 160px; border-radius: 15px; overflow: hidden; margin-bottom: 20px; border: 1px solid #222; background: #000; }
.video-container video { width: 100%; height: 100%; object-fit: cover; }

label { display: block; font-size: 11px; margin-bottom: 8px; color: var(--accent-cyan); font-weight: bold; text-transform: uppercase; letter-spacing: 2px; text-align: left; }

input, select {
    width: 100%; 
    padding: 14px; 
    background: rgba(0,0,0,0.8); 
    border: 1px solid #1e3a5f;
    border-radius: 12px; 
    color: #fff; 
    margin-bottom: 20px; 
    outline: none; 
    font-family: 'Share Tech Mono';
    font-size: 14px;
    display: block;
}

input:focus { border-color: var(--accent-cyan); box-shadow: 0 0 10px rgba(0, 242, 255, 0.3); }

.submit-btn {
    width: 100%; padding: 16px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    border: none; border-radius: 12px; color: #fff; font-weight: bold; cursor: pointer;
    text-transform: uppercase; letter-spacing: 2px;
    box-shadow: 0 5px 20px rgba(0, 119, 255, 0.4);
    transition: 0.3s;
}

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

#video-capture, #canvas { display: none; }