/* support-widget.css */
.support-widget {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 10000;
    font-family: 'Vazirmatn', sans-serif;
}

.support-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #aa190f, #D4AF37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(170, 25, 15, 0.4);
    transition: all 0.3s ease;
    position: relative;
    animation: bounce 2s infinite;
}

.support-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(170, 25, 15, 0.6);
}

.pulse-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.support-panel {
    position: absolute;
    left: 80px;
    bottom: 0;
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.support-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.panel-header {
    background: linear-gradient(135deg, #aa190f, #D4AF37);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.panel-body {
    padding: 20px;
}

.support-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #28a745;
    position: relative;
}

.status-indicator.online::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: #28a745;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.support-status span {
    font-weight: 600;
    color: #333;
}

.support-status small {
    color: #666;
    display: block;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-method:hover {
    background: white;
    border-color: #e9ecef;
    transform: translateX(5px);
}

.method-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.contact-method.whatsapp .method-icon {
    background: #25D366;
}

.contact-method.phone .method-icon {
    background: #aa190f;
}

.contact-method.telegram .method-icon {
    background: #0088cc;
}

.contact-method.email .method-icon {
    background: #D4AF37;
}

.method-info span {
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.method-info small {
    color: #666;
    font-size: 0.8rem;
}

.quick-chat h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 0.9rem;
}

.quick-questions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-question {
    background: #e9ecef;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: right;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    color: #333;
}

.quick-question:hover {
    background: #007bff;
    color: white;
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .support-widget {
        left: 15px;
        bottom: 15px;
    }

    .support-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .support-panel {
        width: 280px;
        left: 70px;
    }

    .support-panel.show {
        position: fixed;
        left: 50%;
        bottom: 50%;
        transform: translate(-50%, 50%);
    }
}

@media (max-width: 480px) {
    .support-panel {
        width: 90vw;
        max-width: 300px;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.support-panel.show {
    animation: slideIn 0.3s ease;
}