/* Modern design: Gradient bubble, animations */
#msc-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.msc-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.msc-interface {
    display: none;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.msc-interface.open {
    display: flex;
}

.msc-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.msc-message {
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    animation: slide-up 0.3s ease;
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.msc-message.user {
    background: #007bff;
    color: white;
    margin-left: auto;
    text-align: right;
}

.msc-message.bot {
    background: #e9ecef;
    color: #333;
}

.msc-form {
    display: flex;
    padding: 10px;
    border-top: 1px solid #dee2e6;
}

.msc-form input[type="text"] {
    flex: 1;
    border: none;
    padding: 10px;
    border-radius: 20px;
    margin-right: 10px;
}

.msc-form button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.msc-integrations {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: #f8f9fa;
}

.msc-integrations a {
    padding: 5px 10px;
    background: #25D366; /* WhatsApp green for WA, adjust for TG */
    color: white;
    text-decoration: none;
    border-radius: 10px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .msc-interface { background: #2c3e50; color: white; }
    .msc-message.bot { background: #34495e; }
}

/* Responsive */
@media (max-width: 768px) {
    .msc-interface { width: 90vw; height: 70vh; }
}