        @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'JetBrains Mono', 'Courier New', monospace;
            background: #000000;
            background-image: 
                radial-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 255, 0, 0.05) 50%, transparent 50%);
            background-size: 20px 20px, 40px 40px;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            color: #00ff00;
            overflow: hidden;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                transparent 50%,
                rgba(0, 255, 0, 0.03) 50%
            );
            background-size: 100% 4px;
            pointer-events: none;
            z-index: 1;
        }

        .app-container {
            width: 100%;
            max-width: 1200px;
            height: 90vh;
            display: flex;
            gap: 2px;
            border: 2px solid #00ff00;
            box-shadow: 
                0 0 20px rgba(0, 255, 0, 0.5),
                inset 0 0 20px rgba(0, 255, 0, 0.1);
            position: relative;
            z-index: 2;
        }

        .connection-panel {
            width: 350px;
            background: #0a0a0a;
            border-right: 1px solid #00ff00;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            overflow-y: auto;
        }

        .chat-container {
            flex: 1;
            background: #000000;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border-left: 1px solid #00ff00;
        }

        .user-profile {
            background: #000000;
            border: 1px solid #00ff00;
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            background: #000000;
            border: 1px solid #00ff00;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #00ff00;
            font-weight: bold;
            font-size: 16px;
            text-shadow: 0 0 5px #00ff00;
        }

        .user-info {
            flex: 1;
        }

        .user-name {
            color: #00ff00;
            font-weight: bold;
            font-size: 12px;
            text-transform: uppercase;
            text-shadow: 0 0 5px #00ff00;
        }

        .user-status {
            color: #00aa00;
            font-size: 10px;
            margin-top: 3px;
        }

        .user-id {
            color: #004400;
            font-size: 9px;
            margin-top: 2px;
            font-family: monospace;
        }

        .logout-btn {
            padding: 6px 12px;
            background: #220000;
            border: 1px solid #ff0000;
            color: #ff0000;
            font-size: 10px;
            cursor: pointer;
            text-transform: uppercase;
            transition: all 0.3s ease;
            font-family: inherit;
        }

        .logout-btn:hover {
            background: #440000;
            box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
            text-shadow: 0 0 5px #ff0000;
        }

        .panel-header {
            text-align: center;
            margin-bottom: 15px;
            border-bottom: 1px solid #00ff00;
            padding-bottom: 10px;
        }

        .panel-header h2 {
            color: #00ff00;
            font-size: 16px;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 700;
        }

        .panel-header h2::before {
            content: '> ';
            color: #00aa00;
        }

        .room-section {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 10px;
        }

        .room-section h3 {
            font-size: 12px;
            color: #00aa00;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 5px;
        }

        .room-section h3::before {
            content: '# ';
            color: #00ff00;
        }

        .room-input {
            display: flex;
            gap: 2px;
        }

        .room-input input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid #00ff00;
            background: #000000;
            color: #00ff00;
            font-size: 12px;
            outline: none;
            font-family: inherit;
        }

        .room-input input:focus {
            border-color: #00ff00;
            box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
            text-shadow: 0 0 5px #00ff00;
        }

        .room-input input::placeholder {
            color: #004400;
        }

        .btn {
            padding: 8px 16px;
            border: 1px solid #00ff00;
            background: #000000;
            color: #00ff00;
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: inherit;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .btn-primary {
            background: #001100;
        }

        .btn-primary:hover {
            background: #002200;
            box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
            text-shadow: 0 0 5px #00ff00;
        }

        .channel-list {
            max-height: 300px;
            overflow-y: auto;
            border: 1px solid #004400;
            background: #000000;
            margin-top: 10px;
        }

        .channel-list::-webkit-scrollbar {
            width: 8px;
        }

        .channel-list::-webkit-scrollbar-track {
            background: #000000;
        }

        .channel-list::-webkit-scrollbar-thumb {
            background: #00ff00;
            border: 1px solid #000000;
        }

        .channel-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 10px;
            background: #000000;
            border-bottom: 1px solid #002200;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .channel-item:hover {
            background: #001100;
        }

        .channel-item.active {
            background: #002200;
            border-left: 2px solid #00ff00;
        }

        .channel-name {
            flex: 1;
            color: #00ff00;
            text-transform: uppercase;
        }

        .channel-type {
            padding: 2px 6px;
            background: #000000;
            border: 1px solid;
            font-size: 9px;
            margin-left: 8px;
        }

        .channel-type.group {
            border-color: #00ff00;
            color: #00ff00;
        }

        .channel-type.dm {
            border-color: #ff00ff;
            color: #ff00ff;
        }

        .online-users {
            background: #000000;
            border: 1px solid #00aa00;
            padding: 10px;
            margin-bottom: 15px;
        }

        .online-users h3 {
            color: #00ff00;
            font-size: 11px;
            margin-bottom: 10px;
            text-transform: uppercase;
        }

        .online-users-list {
            max-height: 100px;
            overflow-y: auto;
        }

        .online-user {
            padding: 4px 8px;
            color: #00aa00;
            font-size: 10px;
            border-bottom: 1px solid #002200;
            cursor: pointer;
        }

        .online-user:hover {
            background: #001100;
            color: #00ff00;
        }

        .online-indicator {
            display: inline-block;
            width: 6px;
            height: 6px;
            background: #00ff00;
            border-radius: 50%;
            margin-right: 6px;
            box-shadow: 0 0 4px #00ff00;
        }

        .instructions {
            background: #000000;
            border: 1px solid #00aa00;
            padding: 12px;
            font-size: 10px;
            line-height: 1.4;
            color: #00aa00;
        }

        .instructions strong {
            color: #00ff00;
            text-shadow: 0 0 3px #00ff00;
        }

        .instructions::before {
            content: '[FIREBASE REALTIME]\n';
            color: #00ff00;
            font-weight: bold;
            display: block;
            margin-bottom: 5px;
        }

        .chat-header {
            background: #000000;
            color: #00ff00;
            padding: 15px 20px;
            text-align: center;
            border-bottom: 2px solid #00ff00;
            position: relative;
        }

        .chat-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, #00ff00, transparent);
            animation: scan 3s linear infinite;
        }

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

        .chat-header h1 {
            margin: 0;
            font-size: 20px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 0 0 10px #00ff00;
        }

        .chat-header h1::before {
            content: '[';
            color: #008800;
        }

        .chat-header h1::after {
            content: ']';
            color: #008800;
        }

        .room-info {
            font-size: 11px;
            color: #00aa00;
            margin-top: 5px;
            font-family: inherit;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .chat-messages {
            flex: 1;
            padding: 15px;
            overflow-y: auto;
            background: #000000;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .chat-messages::-webkit-scrollbar {
            width: 8px;
        }

        .chat-messages::-webkit-scrollbar-track {
            background: #000000;
        }

        .chat-messages::-webkit-scrollbar-thumb {
            background: #00ff00;
            border: 1px solid #000000;
        }

        .message {
            max-width: 80%;
            padding: 8px 12px;
            border: 1px solid;
            animation: slideIn 0.3s ease-out;
            font-size: 12px;
            position: relative;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-10px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .message.sent {
            background: #001100;
            color: #00ff00;
            border-color: #00ff00;
            align-self: flex-end;
            text-shadow: 0 0 3px #00ff00;
        }

        .message.sent::before {
            content: '> ';
            color: #008800;
        }

        .message.received {
            background: #000000;
            color: #00aa00;
            border-color: #00aa00;
            align-self: flex-start;
        }

        .message.received::before {
            content: '< ';
            color: #004400;
        }

        .message.system {
            background: #000000;
            color: #ffff00;
            border-color: #ffff00;
            align-self: center;
            font-style: italic;
            text-align: center;
            text-shadow: 0 0 5px #ffff00;
        }

        .message.system::before {
            content: '[SYSTEM] ';
            color: #aa8800;
        }

        .message-header {
            font-weight: 700;
            font-size: 10px;
            color: #008800;
            margin-bottom: 3px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .message-time {
            font-size: 9px;
            color: #004400;
            margin-top: 3px;
            text-align: right;
        }

        .chat-input-container {
            padding: 15px;
            background: #000000;
            border-top: 1px solid #00ff00;
        }

        .chat-input-wrapper {
            display: flex;
            gap: 8px;
            align-items: flex-end;
        }

        .chat-input-wrapper::before {
            content: '$';
            color: #00ff00;
            font-weight: bold;
            font-size: 16px;
            align-self: center;
            text-shadow: 0 0 5px #00ff00;
        }

        .chat-input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid #00ff00;
            background: #000000;
            color: #00ff00;
            font-size: 12px;
            outline: none;
            font-family: inherit;
            resize: none;
            max-height: 100px;
            min-height: 36px;
        }

        .chat-input:focus {
            border-color: #00ff00;
            box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
            text-shadow: 0 0 3px #00ff00;
        }

        .chat-input::placeholder {
            color: #004400;
        }

        .send-button {
            width: 40px;
            height: 36px;
            border: 1px solid #00ff00;
            background: #000000;
            color: #00ff00;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-size: 14px;
            font-family: inherit;
        }

        .send-button:hover:not(:disabled) {
            background: #001100;
            box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
            text-shadow: 0 0 5px #00ff00;
        }

        .send-button:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .auth-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            backdrop-filter: blur(10px);
        }

        .auth-form {
            background: #000000;
            border: 2px solid #00ff00;
            padding: 30px;
            min-width: 380px;
            max-width: 420px;
            box-shadow: 
                0 0 50px rgba(0, 255, 0, 0.5),
                inset 0 0 50px rgba(0, 255, 0, 0.1);
            position: relative;
        }

        .auth-form::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #00ff00, #008800, #00ff00);
            z-index: -1;
            opacity: 0.3;
        }

        .auth-form h2 {
            margin-bottom: 20px;
            color: #00ff00;
            font-size: 20px;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 0 0 10px #00ff00;
        }

        .auth-form h2::before {
            content: '[ ';
            color: #008800;
        }

        .auth-form h2::after {
            content: ' ]';
            color: #008800;
        }

        .tabs {
            display: flex;
            gap: 2px;
            margin-bottom: 25px;
            border-bottom: 1px solid #00ff00;
        }

        .tab {
            flex: 1;
            padding: 10px;
            background: #000000;
            border: 1px solid #004400;
            border-bottom: none;
            color: #00aa00;
            cursor: pointer;
            text-align: center;
            font-size: 12px;
            text-transform: uppercase;
            transition: all 0.3s ease;
            font-family: inherit;
        }

        .tab.active {
            background: #001100;
            border-color: #00ff00;
            color: #00ff00;
            text-shadow: 0 0 5px #00ff00;
        }

        .tab:hover {
            background: #001100;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .form-subtitle {
            text-align: center;
            color: #00aa00;
            font-size: 11px;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .input-group {
            margin-bottom: 15px;
        }

        .input-group label {
            display: block;
            margin-bottom: 5px;
            color: #00aa00;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .input-group input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #00ff00;
            background: #000000;
            color: #00ff00;
            font-size: 12px;
            outline: none;
            font-family: inherit;
        }

        .input-group input:focus {
            border-color: #00ff00;
            box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
            text-shadow: 0 0 5px #00ff00;
        }

        .input-group input::placeholder {
            color: #004400;
        }

        .auth-error {
            background: #220000;
            border: 1px solid #ff0000;
            color: #ff0000;
            padding: 8px;
            margin-bottom: 15px;
            font-size: 11px;
            text-align: center;
            display: none;
        }

        .auth-success {
            background: #002200;
            border: 1px solid #00ff00;
            color: #00ff00;
            padding: 8px;
            margin-bottom: 15px;
            font-size: 11px;
            text-align: center;
            display: none;
        }

        .security-notice {
            margin-top: 15px;
            padding: 10px;
            background: #001100;
            border: 1px solid #00ff00;
            color: #00ff00;
            font-size: 10px;
            text-align: center;
        }

        @media (max-width: 768px) {
            .app-container {
                flex-direction: column;
                height: 100vh;
                border: 1px solid #00ff00;
            }
            
            .connection-panel {
                width: 100%;
                height: auto;
                max-height: 40vh;
                overflow-y: auto;
                border-right: none;
                border-bottom: 1px solid #00ff00;
            }
            
            .chat-container {
                flex: 1;
                min-height: 0;
                border-left: none;
                border-top: 1px solid #00ff00;
            }
            
            .message {
                max-width: 90%;
            }

            .auth-form {
                min-width: 90%;
                padding: 20px;
            }
        }