:root {
    --bg-color: #050505;
    --panel-bg: #0a0a0c;
    --border-color: #1a1a24;
    --neon-cyan: #00ffcc;
    --neon-red: #ff0055;
    --text-main: #e2e8f0;
    --text-dim: #64748b;
    --font-mono: 'Fira Code', monospace;
    --font-header: 'Orbitron', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-mono);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: 
        linear-gradient(rgba(0, 255, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 204, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* LOGIN SCREEN */
#login-screen {
    justify-content: center;
    align-items: center;
}

.hacker-box {
    background: var(--panel-bg);
    border: 1px solid var(--neon-cyan);
    padding: 40px;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.1), inset 0 0 10px rgba(0, 255, 204, 0.05);
    width: 450px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.hacker-box::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px;
    width: 20px; height: 20px;
    border-top: 2px solid var(--neon-cyan);
    border-left: 2px solid var(--neon-cyan);
}
.hacker-box::after {
    content: '';
    position: absolute;
    bottom: -2px; right: -2px;
    width: 20px; height: 20px;
    border-bottom: 2px solid var(--neon-cyan);
    border-right: 2px solid var(--neon-cyan);
}

.glitch {
    font-family: var(--font-header);
    color: var(--neon-cyan);
    font-size: 1.8rem;
    text-shadow: 0 0 5px var(--neon-cyan);
    text-align: center;
    letter-spacing: 2px;
}

.subtitle {
    color: var(--text-dim);
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    background: #000;
    border: 1px solid #333;
    padding: 10px;
}

.prompt {
    color: var(--neon-cyan);
    font-weight: bold;
}

input[type="text"] {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-mono);
    width: 100%;
    outline: none;
}

button {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-header);
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* CHAT SCREEN */
#chat-screen {
    max-width: 1000px;
    margin: 0 auto;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background: rgba(10, 10, 12, 0.9);
}

header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
}

header h2 {
    font-family: var(--font-header);
    color: var(--text-main);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blinking-dot {
    width: 8px; height: 8px;
    background: var(--neon-red);
    border-radius: 50%;
    animation: blink 1.5s infinite;
    box-shadow: 0 0 8px var(--neon-red);
}

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

.neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
    font-weight: bold;
}

#chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#chat-container::-webkit-scrollbar { width: 5px; }
#chat-container::-webkit-scrollbar-track { background: #000; }
#chat-container::-webkit-scrollbar-thumb { background: var(--border-color); }

.message {
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
}

.message .timestamp { color: var(--text-dim); margin-right: 10px; font-size: 0.85rem; }
.message .sender { font-weight: bold; margin-right: 10px; }
.message .content { color: var(--text-main); }

.message.system .content { color: #f59e0b; font-style: italic; }

#input-area {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
    background: #000;
}

#input-area input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-mono);
    padding: 5px;
    outline: none;
}

#input-area input:focus {
    border-bottom: 1px solid var(--neon-cyan);
}

#input-area button {
    padding: 10px 25px;
}
