/* Deus Ex Style - LeanCore VPS Hosting */

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

body {
    font-family: 'Orbitron', monospace;
    background: #000;
    color: #FFD700;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    animation: backgroundPulse 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 2px solid #FFD700;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 0 0 20px #FFD700;
    letter-spacing: 3px;
}

.logo .subtitle {
    font-size: 0.8rem;
    color: #FFD700;
    opacity: 0.7;
    letter-spacing: 2px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    text-shadow: 0 0 10px #FFD700;
    transform: translateY(-2px);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Main Layout */
.main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 60px 40px;
    min-height: calc(100vh - 100px);
    gap: 40px;
}

/* Registration Panel (Center) */
.registration-panel {
    flex: 1;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.3),
        inset 0 0 30px rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 10;
}

.panel-header {
    text-align: center;
    margin-bottom: 30px;
}

.panel-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 0 15px #FFD700;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #00FF00;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #00FF00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #FFD700;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #FFD700;
    padding: 15px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: #000;
    background: #FFD700;
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 215, 0, 0.1);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #FFD700;
    border-radius: 5px;
    color: #FFD700;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    background: rgba(0, 0, 0, 0.9);
}

.auth-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    border-radius: 5px;
    color: #000;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Support Panel (Right) */
.support-panel {
    width: 400px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.3),
        inset 0 0 30px rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(15px);
}

.support-header {
    text-align: center;
    margin-bottom: 25px;
}

.support-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #FFD700;
}

.support-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #00FF00;
}

.status-dot.online {
    background: #00FF00;
}

/* Chat Interface */
.chat-container {
    margin-bottom: 25px;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #FFD700;
    border-radius: 5px;
    margin-bottom: 15px;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    max-width: 80%;
}

.message.bot {
    background: rgba(255, 215, 0, 0.1);
    border-left: 3px solid #FFD700;
}

.message.user {
    background: rgba(0, 255, 0, 0.1);
    border-left: 3px solid #00FF00;
    margin-left: auto;
}

.message-content {
    color: #FFD700;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message-time {
    font-size: 0.7rem;
    color: #FFD700;
    opacity: 0.6;
    margin-top: 5px;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #FFD700;
    border-radius: 5px;
    color: #FFD700;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
}

.chat-input input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.chat-input button {
    padding: 12px 20px;
    background: #FFD700;
    border: none;
    border-radius: 5px;
    color: #000;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    background: #FFA500;
    transform: translateY(-1px);
}

/* Support Buttons */
.support-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.support-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #FFD700;
    border-radius: 5px;
    color: #FFD700;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.support-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
}

/* VM Order Page */
.vm-order-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    padding: 40px;
    overflow-y: auto;
}

.vm-order-page.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #FFD700;
}

.page-header h2 {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 15px #FFD700;
}

.logout-btn {
    padding: 12px 25px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #FF0000;
    border-radius: 5px;
    color: #FF0000;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.vm-config {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.config-section {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.config-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px #FFD700;
}

.config-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.option input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.option input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #FFD700;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.os-select {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #FFD700;
    border-radius: 5px;
    color: #FFD700;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.9rem;
}

.network-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.network-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
}

.network-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #FFD700;
}

.order-summary {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.order-summary h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 0 15px #FFD700;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-item.total {
    border-bottom: 2px solid #FFD700;
    font-size: 1.2rem;
    color: #FFD700;
    text-shadow: 0 0 10px #FFD700;
}

.order-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    border-radius: 5px;
    color: #000;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
}

.order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* VOIP Modal */
.voip-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.voip-modal.active {
    display: flex;
}

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #FFD700;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    text-align: center;
    min-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #FFD700;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 15px #FFD700;
}

.close-modal {
    background: none;
    border: none;
    color: #FFD700;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #FF0000;
    text-shadow: 0 0 10px #FF0000;
}

.voip-interface {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.call-status {
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #FFD700;
    border-radius: 10px;
}

.status-text {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.call-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.call-btn {
    padding: 15px 25px;
    border: 2px solid #FFD700;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #FFD700;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.call-btn.answer {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00FF00;
    color: #00FF00;
}

.call-btn.decline {
    background: rgba(255, 0, 0, 0.2);
    border-color: #FF0000;
    color: #FF0000;
}

.call-btn.transfer {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    color: #FFD700;
}

.call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main {
        flex-direction: column;
        align-items: center;
    }
    
    .support-panel {
        width: 100%;
        max-width: 500px;
    }
    
    .vm-config {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav {
        gap: 20px;
    }
    
    .main {
        padding: 30px 20px;
    }
    
    .registration-panel,
    .support-panel {
        padding: 25px;
    }
    
    .vm-order-page {
        padding: 20px;
    }
    
    .modal-content {
        min-width: 300px;
        padding: 25px;
    }
    
    .call-controls {
        flex-direction: column;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.8);
}

::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFA500;
}

/* Shared Cyberpunk Layout Helpers */
body.cyber {
    background: #000;
    color: #FFD700;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.cyber-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.cyber-card {
    width: 100%;
    max-width: 420px;
    background: rgba(0, 0, 0, 0.92);
    border: 2px solid #FFD700;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.25);
    backdrop-filter: blur(12px);
}

.cyber-card h2 {
    text-align: center;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cyber-card form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cyber-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cyber-input label {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

.cyber-input input {
    width: 100%;
    padding: 14px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #FFD700;
    border-radius: 6px;
    color: #FFD700;
    font-family: 'Orbitron', monospace;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cyber-input input:focus {
    outline: none;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.45);
    transform: translateY(-1px);
}

.cyber-btn {
    padding: 14px 20px;
    border-radius: 6px;
    border: none;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(120deg, #FFD700, #FFA500);
    color: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cyber-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.35);
}

.cyber-link {
    color: #FFA500;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
}

.cyber-link:hover {
    text-decoration: underline;
}

.cyber-alert {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 3px solid;
    font-size: 0.85rem;
    line-height: 1.4;
}

.cyber-alert.success {
    background: rgba(0, 255, 128, 0.15);
    border-color: #00FF80;
    color: #00FF80;
}

.cyber-alert.error {
    background: rgba(255, 64, 64, 0.18);
    border-color: #FF4040;
    color: #FF8A8A;
}

/* Dashboard */
.dashboard-shell {
    display: flex;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(255, 215, 0, 0.08), transparent 55%), #020202;
    color: #FFD700;
}

.dashboard-sidebar {
    width: 260px;
    background: rgba(0, 0, 0, 0.92);
    border-right: 2px solid rgba(255, 215, 0, 0.35);
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    gap: 24px;
    box-shadow: inset -12px 0 30px rgba(255, 215, 0, 0.02);
}

.dashboard-logo h1 {
    font-size: 1.4rem;
    letter-spacing: 4px;
    text-align: center;
}

.vm-nav {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vm-nav-item {
    padding: 14px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.vm-nav-item > div {
    flex: 1;
    min-width: 0;
}

.vm-nav-item > div div {
    word-break: break-word;
    white-space: normal;
}

.vm-nav-item.active,
.vm-nav-item:hover {
    transform: translateX(4px);
    border-color: #FFD700;
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.25);
}

.vm-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF5252;
    box-shadow: 0 0 10px currentColor;
}

.vm-status-dot.running {
    background: #00FF7F;
}

.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 36px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(18px);
}

.dashboard-actions {
    display: flex;
    gap: 12px;
}

.dashboard-actions .cyber-btn {
    padding: 12px 16px;
    font-size: 0.75rem;
}

.dashboard-tabs {
    display: flex;
    gap: 18px;
    padding: 20px 36px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.dashboard-tab {
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid transparent;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.dashboard-tab.active,
.dashboard-tab:hover {
    border-color: #FFD700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
}

.dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px 36px;
}

.hardware-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.hardware-card {
    background: rgba(0, 0, 0, 0.78);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.12);
    min-height: 140px;
}

.hardware-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
}

.hardware-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.console-frame,
.console-placeholder {
    width: 100%;
    height: calc(100vh - 220px);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 215, 0, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.console-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Create VM Page */
.create-shell {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.create-layout {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.templates-panel {
    flex: 1 1 320px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    padding: 24px;
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.08);
    max-height: 720px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.templates-header h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.templates-header p {
    font-size: 0.8rem;
    color: rgba(255, 215, 0, 0.7);
    line-height: 1.4;
}

.templates-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}

.templates-controls select {
    flex: 1;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.6);
    color: #FFD700;
    border-radius: 6px;
    font-family: 'Orbitron', monospace;
}

.pill-btn {
    border: 1px solid rgba(255, 215, 0, 0.6);
    background: rgba(0, 0, 0, 0.7);
    color: #FFD700;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill-btn:hover {
    background: rgba(255, 215, 0, 0.12);
}

.templates-list {
    flex: 1;
    overflow-y: auto;
    display: grid;
    gap: 14px;
    padding-right: 6px;
}

.template-card {
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
    transition: border 0.2s ease, transform 0.2s ease, background 0.2s ease;
    text-align: left;
    width: 100%;
}

.template-card:hover {
    border-color: #FFD700;
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.template-card.active {
    border: 1px solid #00FF80;
    box-shadow: 0 0 10px rgba(0, 255, 128, 0.2);
    background: rgba(0, 255, 128, 0.05);
}

.template-card h4 {
    font-size: 1rem;
    margin: 0;
    color: #FFD700;
    font-weight: 600;
}

.template-meta {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    font-size: 0.85rem;
    line-height: 1.4;
}

.template-notes {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.template-note {
    padding: 8px;
    border-left: 3px solid rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.08);
    font-size: 0.8rem;
}

.template-empty {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 215, 0, 0.7);
}

/* Модальное окно для описания шаблона */
.template-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.template-modal.open {
    display: flex;
}

.template-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.template-modal__content {
    position: relative;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
    z-index: 1001;
}

.template-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #FFD700;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.template-modal__close:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: rotate(90deg);
}

.template-modal__content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.template-modal__description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 215, 0, 0.9);
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.05);
    border-left: 3px solid #FFD700;
    border-radius: 5px;
}

.template-modal__meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: rgba(255, 215, 0, 0.7);
}

.template-modal__resources {
    padding: 12px;
    background: rgba(0, 255, 128, 0.1);
    border: 1px solid rgba(0, 255, 128, 0.3);
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: rgba(0, 255, 128, 0.9);
}

.template-modal__actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.template-modal__actions .cyber-btn.secondary {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
}

.template-modal__actions .cyber-btn.secondary:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
}

.form-panel {
    flex: 2 1 420px;
}

.create-form textarea {
    min-height: 80px;
    resize: vertical;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.82);
    border: 1px solid rgba(255, 215, 0, 0.6);
    border-radius: 6px;
    color: #FFD700;
    font-family: 'Orbitron', monospace;
}

.script-selected-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(0, 255, 128, 0.6);
    border-radius: 8px;
    background: rgba(0, 255, 128, 0.05);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.create-field.full-width {
    grid-column: 1 / -1;
}

.templates-count {
    font-size: 0.75rem;
    color: rgba(255, 215, 0, 0.6);
}

.hidden {
    display: none !important;
}

.create-form {
    display: grid;
    gap: 24px;
}

.create-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.create-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.create-field input,
.create-field select {
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.82);
    border: 1px solid rgba(255, 215, 0, 0.6);
    border-radius: 6px;
    color: #FFD700;
    font-family: 'Orbitron', monospace;
}

.create-field small {
    color: rgba(255, 215, 0, 0.65);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.create-message {
    display: none;
    margin-top: 10px;
}

.create-message.show {
    display: block;
}

.create-message.success {
    background: rgba(0, 255, 128, 0.1);
    border-left: 3px solid #00FF80;
    padding: 14px;
}

.create-message.error {
    background: rgba(255, 64, 64, 0.15);
    border-left: 3px solid #FF4A4A;
    padding: 14px;
}

/* Console Page */
.console-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #010101;
}

.console-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.console-controls {
    display: flex;
    gap: 12px;
}

.console-stage {
    flex: 1;
    position: relative;
    background: #000;
}

.console-stage #screen {
    width: 100%;
    height: 100%;
}

.console-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 40px 50px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    text-align: center;
}

.console-overlay.hidden {
    display: none;
}

.console-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.console-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF4A4A;
    box-shadow: 0 0 10px currentColor;
}

.console-status-dot.connected {
    background: #00FF7F;
}

@media (max-width: 1024px) {
    .dashboard-shell {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }

    .vm-nav {
        flex-direction: row;
        gap: 16px;
    }

    .vm-nav-item {
        min-width: 220px;
    }
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 8px;
    color: #FFD700;
    cursor: pointer;
    letter-spacing: 1.5px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.user-menu-trigger:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transform: translateY(-1px);
}

.user-menu-trigger span {
    font-weight: 700;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 10px;
    min-width: 220px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
    display: none;
    z-index: 50;
}

.user-menu-dropdown.show {
    display: block;
}

.user-menu-dropdown button,
.user-menu-dropdown a {
    width: 100%;
    padding: 14px 18px;
    background: transparent;
    border: none;
    color: #FFD700;
    text-align: left;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.user-menu-dropdown button:hover,
.user-menu-dropdown a:hover {
    background: rgba(255, 215, 0, 0.15);
}

.delete-btn {
    background: linear-gradient(120deg, #ff4d4d, #ff8a65);
    color: #000;
}

.delete-btn:hover {
    box-shadow: 0 10px 30px rgba(255, 77, 77, 0.45);
}

.hardware-card canvas {
    width: 100% !important;
    height: 180px !important;
    margin-top: 10px;
}

.dashboard-header-user {
    position: relative;
}

.hardware-card .stat-value {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.hardware-card .stat-sub {
    font-size: 0.8rem;
    letter-spacing: 1.2px;
    opacity: 0.7;
}

.support-launcher-btn {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 2500;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(120deg, #ffd700, #ffad33);
    color: #000;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(255, 215, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.support-launcher-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(255, 215, 0, 0.45);
}

.support-launcher-btn span {
    white-space: nowrap;
}

.support-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.support-modal.open {
    display: flex;
}

.support-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.support-modal__content {
    position: relative;
    z-index: 1;
    width: min(640px, 90vw);
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.support-modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: none;
    color: #FFD700;
    font-size: 1.6rem;
    cursor: pointer;
}

.support-modal__title {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.support-modal__status {
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: rgba(255, 215, 0, 0.15);
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.support-modal__body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.support-modal__chat {
    background: rgba(0, 0, 0, 0.65);
    border: 1px dashed rgba(255, 215, 0, 0.25);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: rgba(255, 215, 0, 0.85);
}

.support-modal__chat h4 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 1.2px;
}

.support-modal__chat p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 215, 0, 0.7);
}

.support-modal__call-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-modal__call-controls button {
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-modal__call-controls button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.support-call-btn {
    background: linear-gradient(120deg, #7CFFCB, #0BC0D3);
    color: #06141b;
    box-shadow: 0 10px 25px rgba(10, 180, 180, 0.4);
}

.support-call-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(10, 180, 180, 0.5);
}

.support-hangup-btn {
    background: linear-gradient(120deg, #ff6b6b, #f06595);
    color: #1a0a0a;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
    display: none;
}

.support-hangup-btn.active {
    display: block;
}

.support-modal__audio {
    width: 100%;
    display: none;
    filter: brightness(0.75);
}

@media (max-width: 768px) {
    .support-launcher-btn {
        left: 16px;
        right: 16px;
        width: calc(100% - 32px);
        justify-content: center;
    }

    .support-modal__content {
        padding: 24px;
    }
}

