/* css/style.css */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.75)), 
                url('../assets/pchela_bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #f5f5f7;
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
}

.dashboard {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
    max-width: 1100px; 
    width: 100%;
    background: rgba(20, 20, 22, 0.78);
    border: 1px solid rgba(255, 204, 0, 0.25);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 204, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-sizing: border-box;
    position: relative;
    height: auto; 
    max-height: none; 
    overflow: visible; 
}

@media (max-width: 850px) {
    .dashboard {
        display: flex;
        flex-direction: column;
        max-width: 650px;
        padding: 20px;
        gap: 20px;
        height: auto;
        max-height: none;
        overflow: visible;
    }
}

.control-panel, .monitor-panel { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    width: 100%; 
    height: 100%;
    box-sizing: border-box;
}

h1 {
    color: #ffcc00;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
}
.subtitle { color: #ffdd66; font-size: 1.05rem; margin: 5px 0 15px 0; font-weight: 500; line-height: 1.4; }

.card {
    background: rgba(44, 44, 46, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}
.card-title {
    color: #ffcc00;
    font-size: 1.05rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-banner {
    background: linear-gradient(135deg, rgba(77, 56, 0, 0.7), rgba(36, 26, 0, 0.8));
    border-left: 5px solid #ffcc00;
    font-size: 0.95rem;
    line-height: 1.5;
}
.features-list { margin: 0; padding-left: 20px; font-size: 0.95rem; color: #e5e5ea; line-height: 1.5; }
.features-list li { margin-bottom: 8px; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 5px 0 15px 0; }

.btn {
    display: flex; align-items: center; justify-content: center;
    padding: 14px; border-radius: 12px; text-decoration: none;
    font-weight: 600; text-transform: uppercase; font-size: 0.85rem;
    transition: all 0.2s ease; cursor: pointer;
    box-sizing: border-box;
    text-align: center;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.vk { background: #0077ff; color: #fff; border: 1px solid rgba(0,119,255,0.5); }
.ok { background: #ff8800; color: #fff; border: 1px solid rgba(255,136,0,0.5); }

.btn-free { 
    background: linear-gradient(180deg, #ffe57f, #ffcc00); 
    color: #111; 
    font-size: 1rem; 
    font-weight: bold; 
    box-shadow: 0 6px 25px rgba(255, 204, 0, 0.2); 
    padding: 16px; 
    border: none;
    margin-top: 15px;      
    margin-bottom: 15px;   
    width: 100%;
}
.btn-free:hover { background: #ffe57f; box-shadow: 0 10px 30px rgba(255, 204, 0, 0.4); }
.guarantee { 
    text-align: center; 
    color: #8e8e93; 
    font-size: 0.8rem; 
    margin-top: 15px;     
}

.radar-terminal { background: rgba(10, 10, 12, 0.8); font-family: monospace; border: 1px solid #ffcc00; }
.radar-line { font-size: 0.85rem; margin-bottom: 6px; color: #a1a1a6; word-break: break-all; }
.radar-line span { color: #ffcc00; font-weight: bold; }
.status-online { color: #00ff66 !important; animation: blink 2s infinite; }

.chat-container { 
    display: flex; 
    flex-direction: column; 
    height: 190px; 
    box-sizing: border-box;  
    flex-shrink: 0;
}
.chat-messages { flex-grow: 1; overflow-y: auto; margin-bottom: 10px; padding-right: 5px; display: flex; flex-direction: column; gap: 8px; }
.chat-input-area { display: flex; gap: 8px; width: 100%; box-sizing: border-box; }
.chat-input {
    flex: 1; 
    min-width: 0; 
    background: rgba(0, 0, 0, 0.5); 
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 8px; 
    padding: 10px; 
    color: #fff; 
    font-family: inherit; 
    font-size: 0.9rem;
    box-sizing: border-box;
}
.chat-input:focus { border-color: #ffcc00; outline: none; }
.btn-send { background: #ffcc00; color: #111; border: none; border-radius: 8px; padding: 0 15px; font-weight: bold; cursor: pointer; white-space: nowrap; flex-shrink: 0; }

.news-box { 
    overflow-y: auto; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    max-height: none; 
}
.news-item { background: rgba(28, 28, 30, 0.6); padding: 12px; border-radius: 10px; margin-bottom: 10px; border-left: 3px solid #ffcc00; flex-shrink: 0; }
.news-date { color: #ffcc00; font-size: 0.78rem; font-weight: bold; margin-bottom: 4px; }
.news-text { font-size: 0.85rem; color: #d1d1d6; line-height: 1.4; }

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

@media (max-width: 850px) { 
    body { padding: 10px; }           
    h1 { font-size: 1.8rem; }
    .social-grid { margin-bottom: 5px; }          
    #bee-container-3d { 
        transform: scale(0.5); 
        transform-origin: center center;
    }
    
    .chat-container { height: auto; min-height: 220px; }
    .news-box { max-height: 240px; overflow-y: auto; }
}
