.sg-assistant {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2000;
}

.sg-assistant__toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-assistant__toggle:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.sg-assistant__panel {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 380px;
    height: 600px;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    overflow: hidden;
    background: #0d0d12; 
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.sg-assistant__panel.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.sg-assistant__header {
    padding: 1.25rem;
    background: var(--accent);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.sg-assistant__messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sg-msg__bubble {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.4;
}

.sg-msg--bot .sg-msg__bubble {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.sg-msg--user .sg-msg__bubble {
    background: var(--accent);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

@media (max-width: 768px) {
    .sg-assistant { bottom: 20px; right: 20px; }
    .sg-assistant__toggle { width: 50px; height: 50px; }
    .sg-assistant__panel {
        right: 15px; left: 15px; width: auto;
        bottom: 85px; height: calc(100vh - 120px);
    }
}

@media (max-width: 480px) {
    .sg-assistant__panel { bottom: 80px; height: 75vh; }
    .sg-msg__bubble { max-width: 90%; }
}