/* هدر ویوان: شیشه‌ای با خط نور متحرک، منوی کشویی گرافیکی و پنل موبایل. فقط transform/opacity انیمیت می‌شود. */
.vh .navbar-main { padding: 12px 0; background: linear-gradient(180deg, rgba(10,8,26,.82), rgba(10,8,26,.5)); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(255,255,255,.07); transition: padding .35s ease, background .35s ease, box-shadow .35s ease; }
.vh .navbar-main.navbar-shrink { padding: 6px 0; background: rgba(10,8,26,.9); box-shadow: 0 14px 34px -18px rgba(0,0,0,.9); }
.vh .navbar-main .container { gap: 10px; }

/* خط نور پایین هدر */
.vh__glow { position: absolute; inset: auto 0 -1px 0; height: 2px; overflow: hidden; pointer-events: none; }
.vh__glow::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 220%; background: linear-gradient(90deg, transparent, #7b5cff 18%, #22d3ee 36%, #f472b6 54%, transparent 72%, #7b5cff 90%, transparent); opacity: .85; animation: vh-glow 9s linear infinite; will-change: transform; }
@keyframes vh-glow { to { transform: translateX(45%); } }

/* ---- لوگو ---- */
.vh .navbar-brand { transition: transform .3s; } .vh .navbar-brand:hover { transform: scale(1.03); }

/* ---- لینک‌های دسکتاپ ---- */
@media (min-width: 992px) {
  .vh .navbar-nav { gap: 2px; }
  .vh .navbar-nav > li > a { position: relative; padding: 10px 11px !important; border-radius: 12px; color: #d8d4ee; font-weight: 600; white-space: nowrap; transition: background .25s, color .25s; }
  .vh .navbar-nav > li > a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #7b5cff, #22d3ee); transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .vh .navbar-nav > li > a:hover, .vh .navbar-nav > li > a.active { background: rgba(255,255,255,.07); color: #fff; }
  .vh .navbar-nav > li > a:hover::after, .vh .navbar-nav > li > a.active::after { transform: scaleX(1); }
  .vh .navbar-nav > li > a.dropdown-toggle::after { display: none; }
  .vh .offcanvas { background: transparent; }
  .vh-mob { display: none; }
}

/* ---- ابزارها ---- */
.vh__tools { display: flex; align-items: center; gap: 8px; }
.vh-icon, .vh-user, .vh-login, .vh-burger { -webkit-tap-highlight-color: transparent; }
.vh-icon { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.06); color: #fff; font-size: 17px; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.vh-icon:hover { transform: translateY(-2px); background: rgba(123,92,255,.25); border-color: rgba(123,92,255,.6); color: #fff; } .vh-icon:active { transform: scale(.93); }
.vh-bell i { transform-origin: 50% 0; } .vh-dd:not(.is-open) .vh-bell:hover i { animation: vh-ring .7s; }
@keyframes vh-ring { 20% { transform: rotate(16deg); } 40% { transform: rotate(-14deg); } 60% { transform: rotate(9deg); } 80% { transform: rotate(-5deg); } }
.vh-badge, .vh-pop em[data-vh-unread], .vh-mob em[data-vh-unread] { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: linear-gradient(135deg, #f472b6, #fb7185); color: #fff; font: 800 11px/19px inherit; font-style: normal; text-align: center; }
.vh-badge { position: absolute; top: -6px; inset-inline-start: -6px; box-shadow: 0 0 0 2px #0b0919; } .vh-badge[hidden], em[hidden] { display: none; }
.vh-badge.bump { animation: vh-bump .5s; } @keyframes vh-bump { 40% { transform: scale(1.35); } }
.vh .vv-cart-badge { position: absolute; top: -6px; inset-inline-start: -6px; }

.vh-user { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 3px 12px 3px 4px; border-radius: 99px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font: 700 14px inherit; transition: background .2s, border-color .2s, transform .2s; }
.vh-user:hover { background: rgba(255,255,255,.12); border-color: rgba(123,92,255,.6); } .vh-user:active { transform: scale(.97); }
.vh-uname { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vh-chev { font-size: 10px; opacity: .7; transition: transform .25s; } .vh-dd.is-open .vh-chev { transform: rotate(180deg); }
.vh-av { position: relative; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; font-size: 15px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #7b5cff, #22d3ee); }
.vh-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .vh-av--lg { width: 46px; height: 46px; border-radius: 16px; font-size: 19px; }

.vh-login { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 14px; color: #fff; font: 800 14.5px inherit; background: linear-gradient(135deg, #7b5cff, #6696ff); box-shadow: 0 12px 26px -12px rgba(123,92,255,.95); transition: transform .2s; }
.vh-login:hover { transform: translateY(-2px); color: #fff; } .vh-login:active { transform: scale(.96); }

/* همبرگر متحرک */
.vh .navbar-toggler.vh-burger { width: 42px; height: 42px; padding: 0; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.vh-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.vh-burger span:nth-child(2) { width: 14px; align-self: flex-end; margin-inline-end: 11px; }
.vh-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); } .vh-burger.is-open span:nth-child(2) { opacity: 0; } .vh-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- پنجره‌های کشویی ---- */
.vh-dd { position: relative; }
.vh-pop { position: absolute; top: calc(100% + 14px); left: 0; z-index: 130; width: 270px; padding: 8px; border-radius: 20px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px) scale(.97); transform-origin: top left;
  background: linear-gradient(160deg, rgba(34,29,70,.97), rgba(14,12,32,.98)); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 28px 60px -20px rgba(0,0,0,.95), 0 0 0 1px rgba(123,92,255,.12), inset 0 1px 0 rgba(255,255,255,.12);
  transition: opacity .22s ease, transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s .28s; }
.vh-dd.is-open .vh-pop { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.vh-pop--notif { width: 370px; padding: 0; overflow: hidden; }
.vh-pop a, .vh-pop button { font-family: inherit; }
.vh-pop--user > a, .vh-logout { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 13px; color: #d8d4ee; font-size: 14.5px; font-weight: 600; transition: background .2s, color .2s, transform .2s; }
.vh-pop--user > a:hover { background: rgba(123,92,255,.2); color: #fff; transform: translateX(-3px); }
.vh-pop--user > a > i { width: 20px; text-align: center; color: #ad99ff; }
.vh-pop--user em { margin-inline-start: auto; }
.vh-me { background: rgba(255,255,255,.05); margin-bottom: 6px; padding: 12px !important; } .vh-me b { display: block; color: #fff; font-size: 15px; } .vh-me small { color: #8f8aab; font-size: 12.5px; font-weight: 500; }
.vh-pop--user form { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.09); }
.vh-logout { width: 100%; border: 0; background: transparent; color: #fca5a5; cursor: pointer; } .vh-logout:hover { background: rgba(248,113,113,.16); }

.vh-pop__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.09); }
.vh-pop__head b { color: #fff; font-size: 15.5px; } .vh-pop__head button { border: 0; background: transparent; color: #ad99ff; font-size: 12.5px; font-weight: 700; cursor: pointer; } .vh-pop__head button:hover { color: #fff; }
.vh-nlist { list-style: none; margin: 0; padding: 6px; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.vh-nlist li a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 14px; color: #e9e7f5; transition: background .2s; }
.vh-nlist li a:hover { background: rgba(255,255,255,.07); } .vh-nlist li.is-new a { background: rgba(123,92,255,.16); }
.vh-nico { position: relative; width: 40px; height: 40px; border-radius: 13px; flex: none; display: grid; place-items: center; overflow: hidden; font-size: 16px; }
.vh-nico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .vh-nico img + i { position: relative; z-index: 1; background: rgba(0,0,0,.5); border-radius: 50%; padding: 5px; font-size: 11px; color: #fff; }
.vh-ntext { min-width: 0; display: grid; gap: 1px; } .vh-ntext b { color: #fff; font-size: 14px; } .vh-ntext small { color: #b9b4d6; font-size: 12.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .vh-ntext em { font-style: normal; color: #8f8aab; font-size: 11.5px; }
.vh-nlist li.is-new .vh-ntext b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f472b6; margin-inline-end: 7px; }
.vh-nempty { text-align: center; color: #8f8aab; padding: 30px 10px; font-size: 14px; } .vh-nempty i { display: block; font-size: 30px; margin-bottom: 8px; opacity: .6; }
.vh-pop__foot { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-top: 1px solid rgba(255,255,255,.09); color: #ad99ff; font-weight: 800; font-size: 13.5px; } .vh-pop__foot:hover { background: rgba(123,92,255,.16); color: #fff; }
.tone-info { background: rgba(123,92,255,.22); color: #bdaeff; } .tone-ok { background: rgba(52,211,153,.2); color: #6ee7b7; } .tone-hot { background: rgba(244,114,182,.22); color: #f9a8d4; }

/* ---- موبایل و تبلت ---- */
@media (max-width: 991px) {
  .vh .navbar-main { padding: 8px 0; }
  .vh__tools { gap: 6px; }
  .vh .offcanvas { background: linear-gradient(170deg, rgba(30,24,66,.98), rgba(10,8,26,.99)); border-inline-start: 1px solid rgba(255,255,255,.12); box-shadow: -30px 0 70px -20px rgba(0,0,0,.9); }
  .vh .offcanvas-header { padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .vh .offcanvas .btn-close { filter: invert(1) grayscale(1); opacity: .8; background-color: rgba(255,255,255,.08); border-radius: 12px; padding: 12px; }
  .vh .offcanvas-body { padding: 14px 16px 30px; gap: 12px; }
  .vh .offcanvas .navbar-nav { gap: 6px; width: 100%; }
  .vh .offcanvas .navbar-nav > li > a { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px !important; border-radius: 15px; color: #e9e7f5; font-size: 16px; font-weight: 700; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); transition: background .2s, transform .2s, border-color .2s; }
  .vh .offcanvas .navbar-nav > li > a:active { transform: scale(.98); }
  .vh .offcanvas .navbar-nav > li > a.active, .vh .offcanvas .navbar-nav > li > a:hover { background: rgba(123,92,255,.22); border-color: rgba(123,92,255,.5); color: #fff; }
  .vh .offcanvas.show .navbar-nav > li { animation: vh-in .5s cubic-bezier(.2,.8,.2,1) both; }
  .vh .offcanvas.show .navbar-nav > li:nth-child(1) { animation-delay: .05s; } .vh .offcanvas.show .navbar-nav > li:nth-child(2) { animation-delay: .09s; } .vh .offcanvas.show .navbar-nav > li:nth-child(3) { animation-delay: .13s; }
  .vh .offcanvas.show .navbar-nav > li:nth-child(4) { animation-delay: .17s; } .vh .offcanvas.show .navbar-nav > li:nth-child(5) { animation-delay: .21s; } .vh .offcanvas.show .navbar-nav > li:nth-child(6) { animation-delay: .25s; }
  .vh .offcanvas.show .navbar-nav > li:nth-child(7) { animation-delay: .29s; } .vh .offcanvas.show .navbar-nav > li:nth-child(8) { animation-delay: .33s; } .vh .offcanvas.show .navbar-nav > li:nth-child(n+9) { animation-delay: .37s; }
  @keyframes vh-in { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }

  .vh-mob { padding: 14px 16px 0; display: grid; gap: 10px; }
  .vh-mob__me { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, rgba(123,92,255,.35), rgba(34,211,238,.12)); border: 1px solid rgba(255,255,255,.14); }
  .vh-mob__me span:nth-child(2) { flex: 1; min-width: 0; } .vh-mob__me b { display: block; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vh-mob__me small { color: #b9b4d6; font-size: 12.5px; }
  .vh-mob__me > i { opacity: .6; }
  .vh-mob__login { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 16px; color: #fff; font-weight: 800; font-size: 16px; background: linear-gradient(135deg, #7b5cff, #6696ff); box-shadow: 0 14px 30px -14px rgba(123,92,255,.95); }
  .vh-mob__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .vh-mob__tiles a { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 16px; color: #e9e7f5; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); transition: transform .2s, background .2s; }
  .vh-mob__tiles a:active { transform: scale(.95); } .vh-mob__tiles i { font-size: 18px; color: #ad99ff; }
  .vh-mob__tiles em { position: absolute; top: 6px; inset-inline-start: 8px; }
  .vh .vv-catmenu { margin-top: 6px; }
}
@media (max-width: 767px) { .vh .navbar-main .container { padding-inline: 12px; } .vh-uname, .vh-chev { display: none; } .vh-user { padding: 3px; } }
@media (max-width: 575px) {
  .vh-dd { position: static; }
  .vh-pop, .vh-pop--notif { position: absolute; top: calc(100% + 6px); left: 10px; right: 10px; width: auto; transform-origin: top center; }
  .vh .Middle-logo #logoText p { font-size: 1.85rem !important; }
  .vh .Middle-logo #logoText { gap: 2px; }
  .vh-icon, .vh-user, .vh .navbar-toggler.vh-burger { width: 40px; height: 40px; border-radius: 13px; } .vh-user { padding: 2px; } .vh-av { width: 34px; height: 34px; }
  .vh__tools { gap: 5px; } .vh-login { height: 40px; padding: 0 13px; font-size: 13.5px; }
}
@media (max-width: 359px) { .vh .Middle-logo #logoText p { font-size: 1.5rem !important; } .vh-login span { display: none; } }
@media (min-width: 992px) and (max-width: 1199px) { .vh-uname, .vh-chev { display: none; } .vh-user { padding: 3px; } }

@media (prefers-reduced-motion: reduce) { .vh__glow::before, .vh-bell i, .vh-badge.bump, .vh .offcanvas.show .navbar-nav > li { animation: none !important; } .vh-pop { transition-duration: .01s; } }

/* عرض‌های متوسط دسکتاپ: فاصله‌ی لینک‌ها فشرده می‌شود تا منو هیچ‌وقت نشکند */
@media (min-width: 1200px) and (max-width: 1399px) { .vh .navbar-nav > li > a { padding: 10px 8px !important; } .vh .navbar-nav > li > a::after { inset-inline: 8px; } }
@media (min-width: 992px) and (max-width: 1199px) { .vh .navbar-nav > li > a { padding: 10px 5px !important; font-size: 13px; } .vh .navbar-nav > li > a::after { inset-inline: 5px; } .vh__tools { gap: 6px; } }
@media (min-width: 992px) and (max-width: 1399px) { .vh-uname, .vh-chev { display: none; } .vh-user { padding: 3px; } .vh .navbar-brand .Middle-logo #logoText p { font-size: 2.2rem; } }
@media (min-width: 1200px) and (max-width: 1399px) { .vh .navbar-nav > li > a { padding: 10px 7px !important; } .vh .navbar-nav > li > a::after { inset-inline: 7px; } }

/* همبرگر فقط موبایل و تبلت؛ در لپ‌تاپ و دسکتاپ منوی کامل دیده می‌شود */
@media (min-width: 992px) { .vh .navbar-toggler.vh-burger { display: none !important; } }
