* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #0a0a0f;
    color: #e0e0e0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.container {
    background: #12121a;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a3a;
}
.header h1 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4444;
    transition: background 0.3s;
}
.status-dot.connected {
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}
.status-dot.connecting {
    background: #ffaa00;
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.auth-section {
    background: #1a1a25;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.auth-section h3 {
    font-size: 15px;
    margin-bottom: 12px;
    color: #aaa;
}
.pin-input {
    width: 100%;
    padding: 12px 15px;
    background: #0a0a0f;
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    letter-spacing: 4px;
    outline: none;
    transition: border 0.3s;
}
.pin-input:focus {
    border-color: #6a5acd;
}
.control-section {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.3s;
}
.control-section.active {
    opacity: 1;
    pointer-events: all;
}
.command-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.cmd-btn {
    padding: 14px;
    background: #1a1a25;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cmd-btn:hover {
    background: #252535;
    border-color: #6a5acd;
    transform: translateY(-1px);
}
.cmd-btn:active {
    transform: scale(0.98);
}
.cmd-btn.blocked {
    background: #2a1515;
    border-color: #ff4444;
    cursor: not-allowed;
    opacity: 0.6;
}
.custom-input-area {
    display: flex;
    gap: 10px;
}
.custom-input {
    flex: 1;
    padding: 12px 15px;
    background: #1a1a25;
    border: 1px solid #2a2a3a;
    border-radius: 6px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    outline: none;
    resize: vertical;
    min-height: 60px;
}
.custom-input:focus {
    border-color: #6a5acd;
}
.send-btn {
    padding: 12px 25px;
    background: #6a5acd;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    align-self: flex-end;
}
.send-btn:hover {
    background: #7b6fd4;
}
.send-btn:disabled {
    background: #3a3a4a;
    cursor: not-allowed;
}
.cooldown-bar {
    width: 100%;
    height: 4px;
    background: #1a1a25;
    border-radius: 2px;
    margin-top: 15px;
    overflow: hidden;
}
.cooldown-fill {
    height: 100%;
    background: #6a5acd;
    width: 0%;
    transition: width 0.1s linear;
}
.log-area {
    margin-top: 20px;
    background: #0a0a0f;
    border: 1px solid #2a2a3a;
    border-radius: 6px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}
.log-entry {
    padding: 4px 0;
    border-bottom: 1px solid #151520;
}
.log-entry.success { color: #00ff88; }
.log-entry.error { color: #ff4444; }
.log-entry.info { color: #6a5acd; }
