/* ========================================= */
/* افکت‌های نورانی و انیمیشن‌های پیشرفته    */
/* ========================================= */

/* درخشش داخلی */
.pst-btn .pst-glow {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 120% !important;
    height: 120% !important;
    background: radial-gradient(
        circle at center,
        rgba(255, 192, 61, 0.15) 0%,
        rgba(255, 192, 61, 0.1) 30%,
        transparent 70%
    ) !important;
    border-radius: 50% !important;
    z-index: 0 !important;
    opacity: 0.6 !important;
    filter: blur(10px) !important;
    animation: pst-glow-pulse 3s ease-in-out infinite !important;
}

@keyframes pst-glow-pulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.9); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* حلقه‌های متحرک */
.pst-rings {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    z-index: 0 !important;
}

.pst-ring {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    border: 1px solid rgba(255, 192, 61, 0.3) !important;
    border-radius: 50% !important;
    animation: pst-ring-expand 2s ease-out infinite !important;
}

.pst-ring:nth-child(1) { 
    width: 100%; 
    height: 100%;
    animation-delay: 0s;
}
.pst-ring:nth-child(2) { 
    width: 130%; 
    height: 130%;
    animation-delay: 0.3s;
}
.pst-ring:nth-child(3) { 
    width: 160%; 
    height: 160%;
    animation-delay: 0.6s;
}

@keyframes pst-ring-expand {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* خطوط پرتو */
.pst-rays {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 200% !important;
    height: 200% !important;
    z-index: 0 !important;
}

.pst-ray {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 2px !important;
    height: 100px !important;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 192, 61, 0.6),
        transparent
    ) !important;
    transform-origin: center !important;
    opacity: 0.5 !important;
    animation: pst-ray-rotate 20s linear infinite !important;
}

@keyframes pst-ray-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* تولید رندوم برای ray ها */
.pst-ray:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); animation-delay: 0s; }
.pst-ray:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg); animation-delay: -5s; }
.pst-ray:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg); animation-delay: -10s; }
.pst-ray:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg); animation-delay: -15s; }
.pst-ray:nth-child(5) { transform: translate(-50%, -50%) rotate(180deg); animation-delay: -2s; }
.pst-ray:nth-child(6) { transform: translate(-50%, -50%) rotate(225deg); animation-delay: -7s; }
.pst-ray:nth-child(7) { transform: translate(-50%, -50%) rotate(270deg); animation-delay: -12s; }
.pst-ray:nth-child(8) { transform: translate(-50%, -50%) rotate(315deg); animation-delay: -17s; }

/* افکت جادویی هاور */
.pst-btn:hover .pst-ray {
    animation-duration: 5s !important;
    opacity: 0.8 !important;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    ) !important;
}

.pst-btn:hover .pst-ring {
    border-color: rgba(255, 255, 255, 0.5) !important;
    animation-duration: 1s !important;
}

/* ذرات پراکنده */
.pst-sparkles {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

.pst-sparkle {
    position: absolute !important;
    width: 4px !important;
    height: 4px !important;
    background: #FFC03D !important;
    border-radius: 50% !important;
    box-shadow: 0 0 10px #FFC03D, 0 0 20px #FFC03D !important;
    opacity: 0 !important;
    animation: pst-sparkle-fly 2s linear infinite !important;
}

@keyframes pst-sparkle-fly {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translate(var(--tx), var(--ty)) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(calc(var(--tx) * 2), calc(var(--ty) * 2)) scale(0);
    }
}

/* شناور شدن ملایم */
@keyframes pst-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.pst-btn.pst-floating {
    animation: pst-float 3s ease-in-out infinite !important;
}