/* --- Top Bar --- */
.top-bar {
    background: #151821;
    border-bottom: 1px solid #232735;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e4ea;
}

.brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.top-bar-brand h1 {
    font-size: 1.4rem;
    font-weight: 700;
}

.beta-tag {
    font-size: 10px;
    font-weight: 700;
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 2px 7px;
    border-radius: 10px;
    vertical-align: baseline;
    position: relative;
    top: -4px;
    letter-spacing: 0.5px;
}

.top-bar-brand .tagline {
    font-size: 0.8rem;
    opacity: 0.5;
    display: none;
}

.top-bar-connection {
    display: flex;
    align-items: center;
    gap: 10px;
}

.connect-btn-top {
    background: rgba(255, 255, 255, 0.06);
    color: #8b8fa3;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.connect-btn-top:hover {
    background: rgba(255, 255, 255, 0.1);
}

.connect-btn-top.connected {
    background: rgba(72, 187, 120, 0.2);
    color: #68d391;
    border-color: rgba(72, 187, 120, 0.4);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.off {
    background: #fc8181;
}

.status-dot.on {
    background: #68d391;
    box-shadow: 0 0 6px rgba(72, 187, 120, 0.6);
}

.disconnect-btn-top {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.disconnect-btn-top:hover {
    color: #fc8181;
    background: rgba(255, 255, 255, 0.05);
}
