.ulp-wrap{z-index:999999;box-sizing:border-box;line-height:1.8}
.ulp-wrap *,.ulp-box *{box-sizing:border-box}
.ulp-popup{position:fixed}
.ulp-pos-center{inset:0;display:flex;align-items:center;justify-content:center;padding:16px;pointer-events:none}
.ulp-pos-center .ulp-box,.ulp-pos-center .ulp-overlay{pointer-events:auto}
.ulp-pos-tl,.ulp-pos-tr,.ulp-pos-bl,.ulp-pos-br{width:min(var(--ulp-w,420px),calc(100vw - 32px))}
.ulp-pos-tl{top:16px;left:16px}.ulp-pos-tr{top:16px;right:16px}
.ulp-pos-bl{bottom:16px;left:16px}.ulp-pos-br{bottom:16px;right:16px}
.ulp-overlay{position:absolute;inset:0}
.ulp-box{position:relative;text-align:center;animation-fill-mode:both}
.ulp-box-popup{width:100%;padding:30px 24px 22px;box-shadow:0 18px 55px rgba(0,0,0,.3)}
.ulp-body{display:flex;align-items:center;justify-content:center;gap:18px}
.ulp-col{flex:1 1 auto;min-width:0}
.ulp-bar{left:0;right:0;width:100%}
.ulp-bar-above,.ulp-bar-inside{position:relative}
.ulp-bar-bottom{position:fixed;bottom:0}
.ulp-box-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 14px;padding:10px 48px}
.ulp-x{position:absolute;top:6px;inset-inline-end:8px;z-index:3;width:32px;height:32px;padding:0;border:0;background:transparent;font-size:26px;line-height:1;cursor:pointer;opacity:.85}
.ulp-x:hover{opacity:1}
.ulp-box-bar .ulp-x{top:50%;margin-top:-16px}
.ulp-icon{display:block;line-height:1;margin:0 0 12px}
.ulp-box-bar .ulp-icon{display:inline-block;margin:0}
.ulp-icon img{width:1em;height:1em;object-fit:contain;vertical-align:middle}
.ulp-msg p{margin:0 0 .5em}.ulp-msg p:last-child{margin:0}
.ulp-box-bar .ulp-msg{margin:0}
.ulp-img{flex:0 0 auto;max-width:100%}
.ulp-img img{display:block;width:100%;height:auto;-webkit-user-drag:none;user-select:none}
.ulp-img-free{position:absolute;transform:translate(-50%,-50%);z-index:2;pointer-events:none}
.ulp-cd{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:14px}
.ulp-box-bar .ulp-cd{margin:0}
.ulp-cd-t{display:inline-flex;gap:6px}
.ulp-cd-u{min-width:54px;padding:5px 8px;border-radius:8px;display:flex;flex-direction:column;line-height:1.3;background:var(--ulp-cdbg,#f1f1f1);color:var(--ulp-cdc,#222)}
.ulp-cd-u b{font-size:1.3em;font-variant-numeric:tabular-nums}
.ulp-cd-u i{font-style:normal;font-size:.72em;opacity:.8}
.ulp-btn{margin-top:16px;padding:9px 28px;border:0;border-radius:8px;font:inherit;font-weight:700;cursor:pointer}
/* طناب */
.ulp-rope{position:absolute;width:var(--ulp-rw,4px);height:100vh;border-radius:2px;pointer-events:none;background:repeating-linear-gradient(-45deg,var(--ulp-rc,#8b5a2b) 0 3px,rgba(0,0,0,.3) 3px 6px)}
.ulp-rope-top{bottom:100%}.ulp-rope-bottom{top:100%}
.ulp-rope-a{left:14%}.ulp-rope-b{right:14%}
.ulp-rope::after{content:"";position:absolute;left:50%;width:calc(var(--ulp-rw,4px)*2.8);height:calc(var(--ulp-rw,4px)*2.8);margin-left:calc(var(--ulp-rw,4px)*-1.4);border-radius:50%;background:var(--ulp-rc,#8b5a2b);box-shadow:inset 0 -2px 0 rgba(0,0,0,.3)}
.ulp-rope-top::after{bottom:-3px}.ulp-rope-bottom::after{top:-3px}
/* انیمیشن ورود و خروج */
@keyframes ulp-in{from{opacity:var(--ulp-op,0);transform:var(--ulp-from,none)}to{opacity:1;transform:none}}
@keyframes ulp-out{from{opacity:1;transform:none}to{opacity:var(--ulp-op,0);transform:var(--ulp-from,none)}}
/* افکت آیکن و تصویر */
@keyframes ulp-fx-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes ulp-fx-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.2)}}
@keyframes ulp-fx-shake{0%,100%{transform:rotate(0)}20%{transform:rotate(-12deg)}40%{transform:rotate(12deg)}60%{transform:rotate(-8deg)}80%{transform:rotate(8deg)}}
@keyframes ulp-fx-spin{to{transform:rotate(360deg)}}
@keyframes ulp-fx-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes ulp-fx-swing{0%,100%{transform:rotate(-14deg)}50%{transform:rotate(14deg)}}
.ulp-fx-bounce{animation:ulp-fx-bounce 1.2s ease-in-out infinite}
.ulp-fx-pulse{animation:ulp-fx-pulse 1.3s ease-in-out infinite}
.ulp-fx-shake{animation:ulp-fx-shake 1.6s ease-in-out infinite}
.ulp-fx-spin{animation:ulp-fx-spin 3s linear infinite}
.ulp-fx-float{animation:ulp-fx-float 3s ease-in-out infinite}
.ulp-fx-swing{animation:ulp-fx-swing 1.8s ease-in-out infinite;transform-origin:50% 0}
/* افکت متن */
@keyframes ulp-mfx-fadeup{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes ulp-mfx-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
@keyframes ulp-mfx-shake{0%,100%{transform:rotate(0)}25%{transform:rotate(-1.6deg)}75%{transform:rotate(1.6deg)}}
@keyframes ulp-mfx-glow{0%,100%{text-shadow:0 0 0 transparent}50%{text-shadow:0 0 12px currentColor}}
@keyframes ulp-marq{to{transform:translateX(-100%)}}
.ulp-mfx-fadeup{animation:ulp-mfx-fadeup .9s ease both}
.ulp-mfx-pulse{animation:ulp-mfx-pulse 1.8s ease-in-out infinite}
.ulp-mfx-float{animation:ulp-fx-float 3s ease-in-out infinite}
.ulp-mfx-shake{animation:ulp-mfx-shake 2s ease-in-out infinite}
.ulp-mfx-glow{animation:ulp-mfx-glow 1.8s ease-in-out infinite}
.ulp-marq{overflow:hidden;white-space:nowrap;flex:1 1 220px;min-width:0;direction:ltr}
.ulp-marq>span{display:inline-block;padding-left:100%;unicode-bidi:plaintext;animation:ulp-marq var(--ulp-ms,15s) linear infinite}
.ulp-marq:hover>span{animation-play-state:paused}
@media (max-width:480px){.ulp-body{flex-direction:column!important}}
@media (prefers-reduced-motion:reduce){.ulp-icon,.ulp-img img,.ulp-msg,.ulp-marq>span{animation:none!important}}
