﻿:root {
    --support-size: 64px;
    --support-bg: #cb2c33; /* رنگ دکمه */
    --support-accent: #00d1b2; /* رنگ نشانگر */
    --panel-width: 280px;
}


/* ظرف کلی به خاطر موقعیت‌دهی */
#support-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    font-family: IRANSans, Tahoma, Arial, sans-serif
}


/* دکمه دایره‌ای */
.support-btn {
    width: var(--support-size);
    height: var(--support-size);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: var(--support-bg);
    color: white;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    position: relative;
}

    .support-btn:focus {
        outline: 3px solid rgba(0,0,0,0.08);
        outline-offset: 3px
    }

    .support-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 30px rgba(0,0,0,0.18)
    }


/* نشانگر کوچک (باجت) */
.support-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 12px;
    border-radius: 999px;
    display: inline-block;
    text-align: center;
    background: var(--support-accent);
    color: #003;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}


/* پنل پشتیبانی (پنهان به صورت پیش‌فرض) */
.support-panel {
    position: absolute;
    right: calc(var(--support-size) + 12px);
    bottom: 0;
    width: var(--panel-width);
    transform-origin: 100% 100%;
    transform: translateY(12px) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    background: white;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    overflow: hidden;
}

    .support-panel[aria-hidden="false"] {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto
    }


.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #eee
}

    .panel-header h3 {
        margin: 0;
        font-size: 16px
    }

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer
}


.panel-body {
    padding: 12px 14px
}

.support-action {
    display: block;
    margin: 8px 0;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #e6eef9
}

    .support-action:hover {
        transform: translateY(-2px)
    }


/* حالت موبایل: پنل تمام‌صفحه بالا می‌آید */
@media (max-width:560px) {
    #support-widget {
        right: 14px;
        left: 14px;
        bottom: 14px
    }

    .support-panel {
        position: fixed;
        right: 14px;
        left: 14px;
        bottom: 74px;
        width: auto;
        border-radius: 12px
    }
}
