/* Vendor Hub Pro v1.3 – استوری و اکسپلور (RTL-first، موبایل‌محور) */
.vhp-sx-bar, .vhp-sx-viewer, .vhp-xp, .vhp-xm, .vhp-sx-fab, .vhp-sx-slot, .vhp-sx-toast {
	--sx-ink: #14272b;
	--sx-ink-2: #5b6d71;
	--sx-line: #e6ece9;
	--sx-bg: #f4f6f5;
	--sx-teal: #0b6e68;
	--sx-blue: #1d9bf0;
	--sx-red: #ed4956;
	--sx-ring: linear-gradient(45deg, #f9a825 0%, #f4511e 38%, #d81b60 68%, #7b3fe4 100%);
	box-sizing: border-box;
	font-family: inherit;
	line-height: 1.7;
	-webkit-text-size-adjust: 100%;
}
.vhp-sx-bar *, .vhp-sx-viewer *, .vhp-xp *, .vhp-xm *, .vhp-sx-fab *, .vhp-sx-toast * { box-sizing: border-box; }
.vhp-sx-tick { display: inline-flex; vertical-align: middle; flex: none; margin-inline-start: 3px; line-height: 1; }
.vhp-sx-tick svg { display: block; }
.vhp-sx-bar button, .vhp-xp button, .vhp-xm button, .vhp-sx-viewer button { font-family: inherit; cursor: pointer; }

/* ---------- نوار استوری (زیر هدر) ---------- */
.vhp-sx-bar { position: relative; z-index: 5; width: 100%; background: #fff; border-bottom: 1px solid var(--sx-line); direction: rtl; }
.vhp-sx-bar__in { display: flex; gap: 14px; max-width: 1280px; margin: 0 auto; padding: 12px 16px 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.vhp-sx-bar__in::-webkit-scrollbar { display: none; }
.vhp-sx-bar__item { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--sx-ink); text-align: center; scroll-snap-align: start; }
.vhp-sx-ring { position: relative; width: 70px; height: 70px; border-radius: 50%; padding: 3px; background: var(--sx-ring); display: block; transition: transform .15s; }
.vhp-sx-bar__item:hover .vhp-sx-ring { transform: scale(1.05); }
.vhp-sx-bar__item:active .vhp-sx-ring { transform: scale(.96); }
.vhp-sx-ring.is-seen { background: #cfd8d6; }
.vhp-sx-ring__in { display: flex; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; background: #fff; overflow: hidden; align-items: center; justify-content: center; }
.vhp-sx-ring__in img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vhp-sx-ring__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 24px; background: #e8a317; color: #2b1e00; }
.vhp-sx-bar__name { display: flex; align-items: center; justify-content: center; max-width: 100%; font-size: 12px; line-height: 1.5; color: var(--sx-ink); }
.vhp-sx-bar__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 58px; }
.vhp-sx-bar__item.is-seen .vhp-sx-bar__name { color: var(--sx-ink-2); }

/* دایره‌ی «اکسپلور» ابتدای نوار */
.vhp-sx-bar a.vhp-sx-bar__item { text-decoration: none; }
.vhp-sx-ring--xp { background: linear-gradient(160deg, #0b6e68 0%, #14a89c 100%); }
.vhp-sx-ring__in--xp { background: #fff; color: var(--sx-teal); }
.vhp-sx-bar__item--xp .vhp-sx-bar__name { font-weight: 700; color: var(--sx-teal); }

/* ---------- نمایشگر استوری ---------- */
.vhp-sx-viewer { position: fixed; inset: 0; z-index: 2147483000; background: rgba(8, 14, 16, .94); display: flex; align-items: center; justify-content: center; direction: rtl; -webkit-tap-highlight-color: transparent; animation: sxFade .18s ease; }
@keyframes sxFade { from { opacity: 0; } to { opacity: 1; } }
.vhp-sx-viewer__stage { position: relative; width: min(420px, 100vw); height: min(100dvh, 100vh, 760px); background: #000; border-radius: 16px; overflow: hidden; color: #fff; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
@media (max-width: 600px) { .vhp-sx-viewer__stage { width: 100vw; height: 100dvh; border-radius: 0; } }
.vhp-sx-viewer__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vhp-sx-viewer__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .7) 100%); }
.vhp-sx-viewer__bars { position: absolute; top: 10px; inset-inline: 10px; display: flex; gap: 4px; z-index: 3; }
.vhp-sx-viewer__bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; display: block; }
.vhp-sx-viewer__bars i b { display: block; height: 100%; width: 0; background: #fff; }
.vhp-sx-viewer__bars i.is-done b { width: 100%; }
.vhp-sx-viewer__top { position: absolute; top: 22px; inset-inline: 12px; display: flex; align-items: center; gap: 10px; z-index: 3; }
.vhp-sx-viewer__av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #e8a317; color: #2b1e00; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; border: 2px solid rgba(255, 255, 255, .85); overflow: hidden; }
.vhp-sx-viewer__av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vhp-sx-viewer__who { min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.vhp-sx-viewer__who a { color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; display: flex; align-items: center; }
.vhp-sx-viewer__who small { color: rgba(255, 255, 255, .75); font-size: 12px; }
.vhp-sx-viewer__btns { margin-inline-start: auto; display: flex; gap: 4px; }
.vhp-sx-viewer__btns button, .vhp-sx-viewer__nav { background: rgba(0, 0, 0, .28); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: background .15s; }
.vhp-sx-viewer__btns button:hover, .vhp-sx-viewer__nav:hover { background: rgba(255, 255, 255, .28); }
.vhp-sx-viewer__zone { position: absolute; top: 70px; bottom: 90px; width: 34%; z-index: 2; background: none; border: 0; padding: 0; }
.vhp-sx-viewer__zone--next { left: 0; }
.vhp-sx-viewer__zone--prev { right: 0; }
.vhp-sx-viewer__cap { position: absolute; inset-inline: 0; bottom: 0; padding: 18px 16px 22px; z-index: 3; font-size: 14px; line-height: 1.9; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.vhp-sx-viewer__cap p { margin: 0 0 10px; white-space: pre-line; overflow-wrap: anywhere; }
.vhp-sx-viewer__cta { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--sx-ink); font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 999px; text-decoration: none; }
.vhp-sx-viewer__ctas { display: flex; flex-wrap: wrap; gap: 8px; }
.vhp-sx-viewer__cta--xp { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vhp-sx-viewer__acts { display: flex; gap: 6px; margin: 0 0 10px; }
.vhp-sx-viewer__act { display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .32); border: 0; color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.vhp-sx-viewer__act.is-liked svg { fill: var(--sx-red); stroke: var(--sx-red); }
.vhp-xm__cm-name { color: inherit; text-decoration: none; }
.vhp-sx-viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(255, 255, 255, .16); z-index: 5; }
.vhp-sx-viewer__nav--next { left: max(12px, calc(50% - 210px - 64px)); }
.vhp-sx-viewer__nav--prev { right: max(12px, calc(50% - 210px - 64px)); }
@media (max-width: 600px) { .vhp-sx-viewer__nav { display: none; } }
.vhp-sx-viewer.is-paused .vhp-sx-viewer__bars i b { transition: none; }
.vhp-sx-viewer__spin { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: sxSpin .8s linear infinite; z-index: 2; pointer-events: none; }
@keyframes sxSpin { to { transform: rotate(360deg); } }

/* ---------- دکمه‌ی شناور اکسپلور ---------- */
.vhp-sx-fab { position: fixed; top: 46%; z-index: 9990; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 9px; color: #fff; text-decoration: none; background: linear-gradient(160deg, #0b6e68 0%, #14272b 100%); box-shadow: 0 10px 28px -8px rgba(20, 39, 43, .55); font-size: 12px; font-weight: 700; transition: transform .2s, padding .2s; }
.vhp-sx-fab--right { right: 0; border-radius: 16px 0 0 16px; }
.vhp-sx-fab--left { left: 0; border-radius: 0 16px 16px 0; }
.vhp-sx-fab:hover { color: #fff; padding-inline: 13px; }
.vhp-sx-fab svg { color: #fff; }
.vhp-sx-fab span { writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: .5px; }
.vhp-sx-fab::after { content: ""; position: absolute; top: 8px; inset-inline-start: 8px; width: 8px; height: 8px; border-radius: 50%; background: #f9a825; box-shadow: 0 0 0 3px rgba(249, 168, 37, .3); animation: sxPulse 2s infinite; }
@keyframes sxPulse { 0% { box-shadow: 0 0 0 0 rgba(249, 168, 37, .6); } 70% { box-shadow: 0 0 0 8px rgba(249, 168, 37, 0); } 100% { box-shadow: 0 0 0 0 rgba(249, 168, 37, 0); } }
@media (max-width: 600px) {
	.vhp-sx-fab { top: auto; bottom: 96px; padding: 10px 8px; gap: 0; }
	.vhp-sx-fab span { display: none; }
	.vhp-sx-fab::after { top: 5px; inset-inline-start: 5px; width: 7px; height: 7px; }
}

/* ---------- صفحه‌ی اکسپلور ---------- */
.vhp-xp { direction: rtl; color: var(--sx-ink); max-width: 1040px; margin: 0 auto; padding: 8px 0 40px; }
.vhp-xp__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.vhp-xp__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.6em; line-height: 1.4; color: var(--sx-ink); }
.vhp-xp__sub { margin: 4px 0 0; color: var(--sx-ink-2); font-size: 14px; }
.vhp-xp__sort { display: inline-flex; background: var(--sx-bg); border-radius: 999px; padding: 4px; gap: 2px; }
.vhp-xp__sort button { border: 0; background: none; padding: 7px 18px; border-radius: 999px; font-size: 14px; color: var(--sx-ink-2); transition: background .15s, color .15s; }
.vhp-xp__sort button.is-active { background: #fff; color: var(--sx-ink); font-weight: 700; box-shadow: 0 1px 4px rgba(20, 39, 43, .12); }
.vhp-xp__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; grid-auto-rows: minmax(60px, auto); gap: 4px; }
@media (min-width: 900px) { .vhp-xp__grid { gap: 8px; } }
.vhp-xp__tile { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #dfe7e4; border: 0; padding: 0; border-radius: 4px; color: #fff; text-align: start; }
@media (min-width: 900px) { .vhp-xp__tile { border-radius: 10px; } }
.vhp-xp__tile:nth-child(10n + 3), .vhp-xp__tile:nth-child(10n + 8) { grid-row: span 2; aspect-ratio: auto; }
.vhp-xp__tile img, .vhp-xp__tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.vhp-xp__tile:hover img, .vhp-xp__tile:hover video { transform: scale(1.04); }
.vhp-xp__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55) 100%); opacity: 0; transition: opacity .2s; }
.vhp-xp__tile:hover::after, .vhp-xp__tile:focus-visible::after { opacity: 1; }
.vhp-xp__badge { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; display: inline-flex; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55)); }
.vhp-xp__stats { position: absolute; bottom: 8px; inset-inline: 10px; z-index: 2; display: flex; gap: 14px; font-size: 13px; font-weight: 700; opacity: 0; transition: opacity .2s; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.vhp-xp__stats span { display: inline-flex; align-items: center; gap: 4px; }
.vhp-xp__tile:hover .vhp-xp__stats, .vhp-xp__tile:focus-visible .vhp-xp__stats { opacity: 1; }
@media (hover: none) { .vhp-xp__stats { display: none; } }
.vhp-xp__tile--sk { animation: sxSk 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes sxSk { 0%, 100% { background: #e3eae7; } 50% { background: #eef3f1; } }
.vhp-xp__foot { text-align: center; padding: 22px 0 0; color: var(--sx-ink-2); font-size: 14px; }
.vhp-xp__more { background: #fff; border: 1px solid var(--sx-line); border-radius: 999px; padding: 10px 28px; font-size: 14px; color: var(--sx-ink); }
.vhp-xp__empty { grid-column: 1 / -1; text-align: center; padding: 60px 16px; color: var(--sx-ink-2); background: var(--sx-bg); border-radius: 16px; }
.vhp-xp__empty b { display: block; color: var(--sx-ink); font-size: 1.1em; margin-bottom: 4px; }

/* ---------- پنجره‌ی نمایش پست ---------- */
.vhp-xm { position: fixed; inset: 0; z-index: 2147482000; display: flex; align-items: center; justify-content: center; background: rgba(8, 14, 16, .86); direction: rtl; animation: sxFade .18s ease; }
.vhp-xm__box { position: relative; display: flex; width: min(1060px, 96vw); height: min(86vh, 760px); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.vhp-xm__media { position: relative; flex: 1 1 56%; min-width: 0; background: #000; display: flex; align-items: center; justify-content: center; }
.vhp-xm__media img, .vhp-xm__media video { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.vhp-xm__side { flex: 0 0 380px; min-width: 0; display: flex; flex-direction: column; border-inline-start: 1px solid var(--sx-line); background: #fff; }
.vhp-xm__who { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--sx-line); }
.vhp-xm__av { width: 38px; height: 38px; border-radius: 50%; flex: none; overflow: hidden; background: #e8a317; color: #2b1e00; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.vhp-xm__av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vhp-xm__who a { color: var(--sx-ink); font-weight: 700; text-decoration: none; display: flex; align-items: center; font-size: 14px; }
.vhp-xm__who small { display: block; color: var(--sx-ink-2); font-size: 12px; line-height: 1.4; }
.vhp-xm__close { margin-inline-start: auto; width: 34px; height: 34px; border: 0; background: none; color: var(--sx-ink); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.vhp-xm__close:hover { background: var(--sx-bg); }
.vhp-xm__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; overscroll-behavior: contain; }
.vhp-xm__cap { margin: 0 0 14px; font-size: 14px; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }
.vhp-xm__cm { display: flex; gap: 10px; margin-bottom: 14px; }
.vhp-xm__cm .vhp-xm__av { width: 32px; height: 32px; background: var(--sx-bg); }
.vhp-xm__cm-b { flex: 1; min-width: 0; font-size: 14px; line-height: 1.8; }
.vhp-xm__cm-b strong { font-size: 13px; display: inline-flex; align-items: center; margin-inline-end: 6px; }
.vhp-xm__cm-b p { margin: 0; display: inline; overflow-wrap: anywhere; }
.vhp-xm__cm-m { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--sx-ink-2); margin-top: 1px; }
.vhp-xm__cm-m button { background: none; border: 0; padding: 0; font-size: 12px; color: var(--sx-ink-2); text-decoration: underline; }
.vhp-xm__cm-m button:hover { color: var(--sx-red); }
.vhp-xm__owner { font-size: 11px; background: var(--sx-bg); color: var(--sx-ink-2); border-radius: 6px; padding: 0 6px; margin-inline-start: 4px; }
.vhp-xm__pend { font-size: 11px; color: #9a6a00; background: #fdf3d9; border-radius: 6px; padding: 0 6px; }
.vhp-xm__more { background: none; border: 0; color: var(--sx-ink-2); font-size: 13px; padding: 4px 0 12px; }
.vhp-xm__acts { border-top: 1px solid var(--sx-line); padding: 8px 12px 4px; }
.vhp-xm__row { display: flex; align-items: center; gap: 4px; }
.vhp-xm__btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 8px; border-radius: 10px; color: var(--sx-ink); font-size: 14px; }
.vhp-xm__btn:hover { background: var(--sx-bg); }
.vhp-xm__btn.is-liked { color: var(--sx-red); }
.vhp-xm__btn.is-liked svg { fill: var(--sx-red); stroke: var(--sx-red); }
.vhp-xm__btn.is-pop svg { animation: sxPop .35s ease; }
@keyframes sxPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.vhp-xm__share { margin-inline-start: auto; }
.vhp-xm__time { padding: 0 8px 6px; font-size: 12px; color: var(--sx-ink-2); }
.vhp-xm__form { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--sx-line); padding: 8px 12px; }
.vhp-xm__form textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: var(--sx-bg); border-radius: 18px; padding: 8px 14px; font-family: inherit; font-size: 14px; line-height: 1.6; max-height: 90px; color: var(--sx-ink); }
.vhp-xm__form button { background: none; border: 0; color: var(--sx-blue); font-weight: 700; font-size: 14px; padding: 6px 8px; }
.vhp-xm__form button:disabled { opacity: .4; cursor: default; }
.vhp-xm__login { border-top: 1px solid var(--sx-line); padding: 12px 14px; text-align: center; font-size: 14px; color: var(--sx-ink-2); }
.vhp-xm__login a { color: var(--sx-blue); font-weight: 700; text-decoration: none; }
.vhp-xm__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: var(--sx-ink); display: inline-flex; align-items: center; justify-content: center; padding: 0; z-index: 3; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.vhp-xm__nav:hover { background: #fff; }
.vhp-xm__nav--next { left: 12px; }
.vhp-xm__nav--prev { right: 12px; }
.vhp-xm__heart { position: absolute; top: 50%; left: 50%; width: 96px; height: 96px; margin: -48px; color: #fff; opacity: 0; pointer-events: none; z-index: 4; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .5)); }
.vhp-xm__heart svg { width: 100%; height: 100%; fill: #fff; stroke: #fff; }
.vhp-xm__heart.is-on { animation: sxHeart .8s ease; }
@keyframes sxHeart { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.15); } 60% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1); } }
.vhp-xm__outer-close { position: fixed; top: 14px; inset-inline-start: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; display: inline-flex; align-items: center; justify-content: center; z-index: 5; padding: 0; }
.vhp-xm__outer-close:hover { background: rgba(255, 255, 255, .3); }
.vhp-xm__soundbtn { position: absolute; bottom: 12px; inset-inline-end: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
@media (max-width: 820px) {
	.vhp-xm { align-items: stretch; }
	.vhp-xm__box { flex-direction: column; width: 100vw; height: 100dvh; border-radius: 0; }
	.vhp-xm__media { flex: 0 0 auto; height: 52dvh; }
	.vhp-xm__side { flex: 1 1 auto; min-height: 0; border-inline-start: 0; }
	.vhp-xm__nav { width: 34px; height: 34px; }
	.vhp-xm__outer-close { top: 10px; background: rgba(0, 0, 0, .45); }
}

.vhp-sx-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2147483600; background: #14272b; color: #fff; padding: 10px 20px; border-radius: 12px; font-size: 14px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5); max-width: 90vw; direction: rtl; animation: sxFade .2s ease; }
body.vhp-sx-lock { overflow: hidden; }

/* ---------- تب «استوری و اکسپلور» در پنل فروشنده ---------- */
.vhp-sx-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.vhp-sx-stats > div { background: #fff; border: 1px solid var(--vhp-line, #e3e9e6); border-radius: 14px; padding: 12px 10px; text-align: center; box-shadow: var(--vhp-shadow, none); }
.vhp-sx-stats b { display: block; font-size: 1.4em; line-height: 1.4; color: var(--vhp-teal-d, #08524d); }
.vhp-sx-stats span { font-size: 12px; color: var(--vhp-ink-2, #51666b); }
@media (max-width: 700px) { .vhp-sx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vhp-sx-stats > div:last-child { grid-column: 1 / -1; } }
.vhp-sx-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
@media (max-width: 900px) { .vhp-sx-forms { grid-template-columns: minmax(0, 1fr); } }
.vhp-sx-form h3 { margin-bottom: 2px; }
.vhp-sx-drop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 150px; margin: 10px 0 14px; border: 2px dashed #b9cbc7; border-radius: 16px; background: #f7faf9; cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; }
.vhp-sx-drop:hover, .vhp-sx-drop.is-over { border-color: var(--vhp-teal, #0b6e68); background: var(--vhp-teal-l, #e4f3f1); }
.vhp-sx-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.vhp-sx-drop__txt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px; text-align: center; color: var(--vhp-teal-d, #08524d); }
.vhp-sx-drop__txt small { color: var(--vhp-ink-2, #51666b); font-size: 12px; }
.vhp-sx-drop__prev { position: absolute; inset: 0; background: #000; display: flex; align-items: center; justify-content: center; }
.vhp-sx-drop__prev[hidden] { display: none; }
.vhp-sx-drop__prev img, .vhp-sx-drop__prev video { width: 100%; height: 100%; object-fit: contain; display: block; }
.vhp-sx-drop__prev em { position: absolute; bottom: 8px; inset-inline: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-style: normal; font-size: 12px; border-radius: 8px; padding: 2px 8px; text-align: center; }
.vhp-sx-progress { position: relative; height: 22px; border-radius: 999px; background: #e3eae7; overflow: hidden; margin-bottom: 12px; }
.vhp-sx-progress[hidden] { display: none; }
.vhp-sx-progress i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: linear-gradient(90deg, #0b6e68, #14a89c); transition: width .15s; }
.vhp-sx-progress span { position: relative; display: block; text-align: center; font-size: 12px; line-height: 22px; color: #fff; mix-blend-mode: normal; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.vhp-sx-list { display: grid; gap: 10px; }
.vhp-sx-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--vhp-line, #e3e9e6); border-radius: 14px; background: #fff; }
.vhp-sx-item__media { position: relative; width: 64px; height: 84px; border-radius: 10px; overflow: hidden; background: #dfe7e4; flex: none; }
.vhp-sx-item__media img, .vhp-sx-item__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vhp-sx-item__badge { position: absolute; top: 4px; inset-inline-start: 4px; color: #fff; display: inline-flex; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.vhp-sx-item__body { flex: 1; min-width: 0; }
.vhp-sx-item__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vhp-sx-item__cap { margin: 4px 0 0; font-size: 13px; color: var(--vhp-ink-2, #51666b); overflow-wrap: anywhere; }
.vhp-sx-item__stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; font-size: 13px; }
.vhp-sx-item__stats span { display: inline-flex; align-items: center; gap: 4px; }
.vhp-sx-del { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--vhp-line, #e3e9e6); background: #fff; color: var(--vhp-danger, #c0392b); display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.vhp-sx-del:hover { background: #fdecea; }
.vhp-sx-comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vhp-sx-comments li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--vhp-line, #e3e9e6); border-radius: 12px; }
.vhp-sx-comments p { margin: 2px 0 0; overflow-wrap: anywhere; }
.vhp-sx-lock { display: flex; gap: 16px; align-items: center; }
.vhp-sx-lock__ico { width: 64px; height: 64px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; background: var(--vhp-blue-l, #e5f3fe); color: var(--vhp-blue, #1d9bf0); flex: none; }
.vhp-sx-lock h3 { margin-bottom: 4px; }
@media (max-width: 560px) { .vhp-sx-lock { flex-direction: column; text-align: center; } }

@media (prefers-reduced-motion: reduce) {
	.vhp-sx-viewer, .vhp-xm, .vhp-sx-fab::after, .vhp-xp__tile--sk, .vhp-xm__heart.is-on, .vhp-xm__btn.is-pop svg { animation: none; }
}

/* ===== v2.5.1 — نوار فروشندگان و دکمه‌ی اکسپلور در موبایل: فشرده، چسبان هنگام اسکرول، بدون مزاحمت برای صفحه ===== */
.vhp-sx-bar__item { -webkit-tap-highlight-color: transparent; }
.vhp-sx-bar__item:focus-visible { outline: 2px solid var(--sx-teal); outline-offset: 3px; border-radius: 12px; }
body.vhp-sx-lock .vhp-sx-fab { display: none; }
@media (max-width: 820px) {
	.vhp-sx-bar { position: -webkit-sticky; position: sticky; top: var(--sx-top, 0px); z-index: 99; overflow: hidden; transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .2s, top .2s; will-change: transform; }
	.vhp-sx-bar.is-stuck { box-shadow: 0 6px 18px -10px rgba(20, 39, 43, .45); border-bottom-color: transparent; }
	.vhp-sx-bar.is-hidden { transform: translateY(-110%); box-shadow: none; pointer-events: none; }
	.vhp-sx-bar__in { gap: 10px; padding: 8px 12px 7px; padding-inline: max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-left)); scroll-padding-inline: 12px; overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 22px), transparent); }
	.vhp-sx-bar__item { width: 62px; gap: 4px; }
	.vhp-sx-ring { width: 56px; height: 56px; padding: 2px; }
	.vhp-sx-ring__in { border-width: 2px; }
	.vhp-sx-ring__ph { font-size: 20px; }
	.vhp-sx-bar__name { font-size: 11px; line-height: 1.4; }
	.vhp-sx-bar__name span { max-width: 48px; }
	.vhp-sx-bar__item:hover .vhp-sx-ring { transform: none; }
	.vhp-sx-bar__item:active .vhp-sx-ring { transform: scale(.94); }
	/* دکمه‌ی شناور اکسپلور: کوچک، بالاتر از نوار پایین گوشی، با اسکرول به پایین کنار می‌رود */
	.vhp-sx-fab { bottom: calc(92px + env(safe-area-inset-bottom)); transition: transform .28s ease, padding .2s, opacity .2s; }
	.vhp-sx-fab--right.is-away { transform: translateX(105%); opacity: 0; pointer-events: none; }
	.vhp-sx-fab--left.is-away { transform: translateX(-105%); opacity: 0; pointer-events: none; }
	/* نمایشگر استوری: رعایت ناچ و نوار پایین گوشی */
	.vhp-sx-viewer__bars { top: calc(10px + env(safe-area-inset-top)); }
	.vhp-sx-viewer__top { top: calc(22px + env(safe-area-inset-top)); }
	.vhp-xm__outer-close { top: calc(10px + env(safe-area-inset-top)); }
	.vhp-xm__box { padding-bottom: env(safe-area-inset-bottom); }
	.vhp-sx-toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
	/* صفحه‌ی اکسپلور */
	.vhp-xp { padding-inline: 0; }
	.vhp-xp__head { align-items: stretch; margin-bottom: 12px; }
	.vhp-xp__title { font-size: 1.3em; }
	.vhp-xp__sort { width: 100%; }
	.vhp-xp__sort button { flex: 1; padding: 9px 10px; }
}
@media (max-width: 380px) { .vhp-sx-bar__item { width: 58px; } .vhp-sx-ring { width: 52px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .vhp-sx-bar, .vhp-sx-fab { transition: none; } }
