@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

.wmcw-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}

.wmcw-toggle {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #9E7427 0%, #D4AF37 30%, #F0D878 60%, #9E7427 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.45), 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border-radius: 50% !important;
}

.wmcw-toggle:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 12px 40px rgba(201, 168, 76, 0.6);
}

.wmcw-toggle.active {
    transform: rotate(93deg);
    background: linear-gradient(135deg, #9E7427 0%, #9E7427 100%);
    border-radius:50%;
}

.wmcw-toggle svg {
    width: 30px;
    height: 30px;
    fill: #2C1810;
    transition: all 0.3s ease;
}

.wmcw-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.92);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wmcw-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.wmcw-header {
    background: linear-gradient(135deg, #C9A84C 0%, #D4AF37 40%, #E8C84A 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.wmcw-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    animation: wmcwShimmer 3s ease-in-out infinite;
}

@keyframes wmcwShimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10%, -10%); }
}

.wmcw-header-text {
    color: #2C1810;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.wmcw-header-text span {
    font-size: 13px;
    font-weight: 500;
}

.wmcw-close {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(44, 24, 16, 0.15);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2C1810;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.wmcw-close:hover {
    background: rgba(44, 24, 16, 0.3);
    transform: rotate(90deg);
}

.wmcw-body {
    padding: 20px 16px;
    background: #FAFAF8;
}

.wmcw-body-title {
    color: #5C4A3A;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-right: 8px;
}

.wmcw-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #F0E8D8;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.wmcw-item:hover {
    border-color: #D4AF37;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
    transform: translateX(-4px);
}

.wmcw-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wmcw-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wmcw-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.wmcw-icon-bale {
    background: linear-gradient(135deg, #00A693 0%, #00C4B0 100%);
}

.wmcw-icon-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.wmcw-icon-telegram {
    background: linear-gradient(135deg, #0088CC 0%, #2AABEE 100%);
}

.wmcw-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wmcw-name {
    color: #2C1810;
    font-size: 15px;
    font-weight: 700;
}

.wmcw-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #00A693;
    font-weight: 600;
}

.wmcw-dot {
    width: 8px;
    height: 8px;
    background: #00D68F;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 214, 143, 0.5);
    animation: wmcwPulse 2s ease-in-out infinite;
}

@keyframes wmcwPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.wmcw-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5F0E8 0%, #EDE6D8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #E8DCC8;
}

.wmcw-avatar svg {
    width: 20px;
    height: 20px;
    fill: #B8A88A;
}

@media (max-width: 480px) {
    .wmcw-panel {
        width: calc(100vw - 48px);
        right: -12px;
    }
}