﻿.demo-content {
    text-align: center;
    color: white;
    max-width: 600px;
}

    .demo-content h1 {
        font-size: 2.5em;
        margin-bottom: 20px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    .demo-content p {
        font-size: 1.2em;
        line-height: 1.8;
        background: rgba(255,255,255,0.1);
        padding: 30px;
        border-radius: 15px;
        backdrop-filter: blur(10px);
    }

/* Backdrop */
.support-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

    .support-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

/* دکمه اصلی پشتیبانی */
.support-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    cursor: pointer;
    user-select: none;
}

.support-button-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

    .support-button-wrapper:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6);
    }

    .support-button-wrapper.active {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    }

/* Pulse Ring */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50px;
    border: 2px solid rgba(102, 126, 234, 0.6);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* آیکون هدست */
.support-icon {
    width: 32px;
    height: 32px;
    position: relative;
    transition: all 0.3s ease;
}

    .support-icon svg {
        width: 100%;
        height: 100%;
        fill: white;
    }

.support-button-wrapper.active .support-icon {
    transform: rotate(360deg);
}

/* متن پشتیبانی */
.support-text {
    color: white;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Badge آنلاین */
.online-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #10b981;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    border: 3px solid white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* منوی پشتیبانی */
.support-menu {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 60px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
}

    .support-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

/* Header */
.menu-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    color: white;
}

.menu-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

    .header-icon svg {
        width: 30px;
        height: 30px;
        fill: white;
    }

.header-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: bold;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* محتوا */
.menu-content {
    padding: 25px;
}

.menu-description {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 14px;
}

/* گزینه‌های ارتباطی */
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

    .contact-option:hover {
        transform: translateX(-5px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .contact-option.phone {
        background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
    }

        .contact-option.phone:hover {
            border-color: #10b981;
        }

    .contact-option.whatsapp {
        background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    }

        .contact-option.whatsapp:hover {
            border-color: #25d366;
        }

    .contact-option.email {
        background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    }

        .contact-option.email:hover {
            border-color: #3b82f6;
        }

    .contact-option.help {
        background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    }

        .contact-option.help:hover {
            border-color: #8b5cf6;
        }

.option-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-option:hover .option-icon {
    transform: scale(1.1) rotate(5deg);
}

.option-icon svg {
    width: 24px;
    height: 24px;
}

.option-info {
    flex: 1;
}

.option-title {
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 4px;
    font-size: 15px;
}

.option-subtitle {
    color: #64748b;
    font-size: 13px;
}

.option-arrow {
    color: #94a3b8;
    transition: all 0.3s ease;
}

.contact-option:hover .option-arrow {
    transform: translateX(-3px);
    color: #1e293b;
}

/* Footer */
.menu-footer {
    background: #f8fafc;
    padding: 15px 25px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

    .menu-footer p {
        color: #64748b;
        font-size: 12px;
    }

/* Responsive */
@media (max-width: 480px) {
    .support-button {
        bottom: 20px;
        right: 20px;
    }

    .support-button-wrapper {
        padding: 14px 20px;
    }

    .support-text {
        font-size: 14px;
    }

    .support-menu {
        bottom: 90px;
        right: 20px;
        width: calc(100vw - 40px);
    }

    .menu-header {
        padding: 20px;
    }

    .menu-content {
        padding: 20px;
    }
}
