/* MHP Countdown Pro – frontend (فونت از قالب ارث‌بری می‌شود) */
.mhpt{display:block;width:100%;font-family:inherit;color:inherit;line-height:1.3;box-sizing:border-box}
.mhpt *,.mhpt *::before,.mhpt *::after{box-sizing:border-box;font-family:inherit}
.mhpt__title{font-size:var(--mhpt-ts,22px);color:var(--mhpt-ttl,inherit);font-weight:700;margin:0 0 16px;text-align:center}
.mhpt--align-start .mhpt__title{text-align:start}
.mhpt--align-end .mhpt__title{text-align:end}

.mhpt__grid{display:flex;flex-wrap:wrap;gap:var(--mhpt-gap,14px);justify-content:center;align-items:stretch;animation:mhptIn .6s ease both}
.mhpt--align-start .mhpt__grid{justify-content:flex-start}
.mhpt--align-end .mhpt__grid{justify-content:flex-end}

.mhpt__item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
	min-width:var(--mhpt-w,90px);padding:var(--mhpt-pad,16px) calc(var(--mhpt-pad,16px)*.6);
	border-radius:var(--mhpt-r,16px);background:var(--mhpt-bg,#7c3aed);
	border:var(--mhpt-bw,0) solid var(--mhpt-bc,transparent);text-align:center;transition:box-shadow .3s}
.mhpt__ring{display:none}
.mhpt__num{display:inline-block;font-size:var(--mhpt-ns,40px);font-weight:var(--mhpt-nw,700);color:var(--mhpt-num,#fff);line-height:1.1;font-variant-numeric:tabular-nums}
.mhpt__label{font-size:var(--mhpt-ls,14px);font-weight:var(--mhpt-lw,500);color:var(--mhpt-lbl,#e0e7ff);margin-top:6px}

/* سایه‌ها */
.mhpt--shadow-soft .mhpt__item{box-shadow:0 8px 24px rgba(0,0,0,.15)}
.mhpt--shadow-strong .mhpt__item{box-shadow:0 14px 40px rgba(0,0,0,.35)}
.mhpt--shadow-glow .mhpt__item{box-shadow:0 0 30px -4px var(--mhpt-glow,#7c3aed)}

/* شیشه‌ای */
.mhpt--glass .mhpt__item{-webkit-backdrop-filter:blur(14px) saturate(160%);backdrop-filter:blur(14px) saturate(160%)}

/* مینیمال */
.mhpt--minimal .mhpt__item{background:none;border:0;box-shadow:none;padding:0 calc(var(--mhpt-pad,16px)*.5)}

/* حلقه‌ای */
.mhpt--ring .mhpt__item{width:var(--mhpt-w,110px);height:var(--mhpt-w,110px);min-width:0;padding:0;border:0;border-radius:50%;background:none;box-shadow:none}
.mhpt--ring .mhpt__ring{display:block;position:absolute;inset:0;width:100%;height:100%}
.mhpt--ring .mhpt__track{fill:none;stroke:var(--mhpt-track,#e5e7eb);stroke-width:var(--mhpt-rw,6)}
.mhpt--ring .mhpt__prog{fill:none;stroke:var(--mhpt-ring,#7c3aed);stroke-width:var(--mhpt-rw,6);stroke-linecap:round;stroke-dasharray:289.03;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:50% 50%;transition:stroke-dashoffset .5s linear}
.mhpt--ring .mhpt__num,.mhpt--ring .mhpt__label{position:relative;z-index:1}
.mhpt--ring .mhpt__label{margin-top:2px}
.mhpt--ring.mhpt--shadow-soft .mhpt__item,.mhpt--ring.mhpt--shadow-strong .mhpt__item,.mhpt--ring.mhpt--shadow-glow .mhpt__item{box-shadow:none}
.mhpt--ring.mhpt--shadow-glow .mhpt__prog{filter:drop-shadow(0 0 4px var(--mhpt-glow,#7c3aed))}

/* جداکننده ":" */
.mhpt--sep .mhpt__item:not(.is-last)::after{content:":";position:absolute;top:0;bottom:0;inset-inline-end:calc(var(--mhpt-gap,14px)*-1);
	width:var(--mhpt-gap,14px);display:flex;align-items:center;justify-content:center;
	font-size:calc(var(--mhpt-ns,40px)*.7);font-weight:700;color:var(--mhpt-sep,#fff);padding-bottom:.1em}

/* انیمیشن اعداد */
.mhpt--anim-flip .mhpt__num.is-tick{animation:mhptFlip .45s cubic-bezier(.2,.8,.2,1)}
.mhpt--anim-pulse .mhpt__num.is-tick{animation:mhptPulse .4s ease}
.mhpt--anim-fade .mhpt__num.is-tick{animation:mhptFade .5s ease}
@keyframes mhptFlip{0%{transform:translateY(-45%);opacity:0}100%{transform:none;opacity:1}}
@keyframes mhptPulse{0%{transform:scale(1.18)}100%{transform:scale(1)}}
@keyframes mhptFade{0%{opacity:0}100%{opacity:1}}
@keyframes mhptIn{0%{opacity:0;transform:translateY(8px)}100%{opacity:1;transform:none}}

/* پایان */
.mhpt__expired{display:none;text-align:center;font-size:var(--mhpt-ts,22px);font-weight:700;color:var(--mhpt-ttl,inherit)}
.mhpt.is-expired .mhpt__grid{display:none}
.mhpt.is-expired .mhpt__expired{display:block}

/* موبایل */
@media (max-width:600px){
	.mhpt__grid{gap:calc(var(--mhpt-gap,14px)*.6)}
	.mhpt__item{min-width:var(--mhpt-wm,64px);padding:calc(var(--mhpt-pad,16px)*.7) calc(var(--mhpt-pad,16px)*.4)}
	.mhpt__num{font-size:var(--mhpt-nsm,28px)}
	.mhpt__label{font-size:calc(var(--mhpt-ls,14px)*.85)}
	.mhpt--ring .mhpt__item{width:var(--mhpt-wm,64px);height:var(--mhpt-wm,64px);padding:0}
	.mhpt--sep .mhpt__item:not(.is-last)::after{inset-inline-end:calc(var(--mhpt-gap,14px)*-.6);width:calc(var(--mhpt-gap,14px)*.6);font-size:calc(var(--mhpt-nsm,28px)*.7)}
}
@media (prefers-reduced-motion:reduce){.mhpt *{animation:none!important;transition:none!important}}
