/* Live notifications on the site: toasts + unread bell. Everything is scoped under .vpa-n- */
.vpa-n-stack {
  position: fixed; z-index: 2147483000; top: 18px; left: 18px;
  display: flex; flex-direction: column; gap: 10px;
  width: min(380px, calc(100vw - 32px)); pointer-events: none;
  direction: rtl; font-family: inherit;
}
.vpa-n-toast {
  --k: var(--vpa-c, #035dcd);
  pointer-events: auto; position: relative; overflow: hidden;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 14px 16px 12px; border-radius: 16px;
  background: #fff; color: #0f172a; text-align: right;
  border: 1px solid #e6eaf0;
  box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .45), 0 2px 6px rgba(15, 23, 42, .06);
  transform: translateY(-14px) scale(.98); opacity: 0;
  transition: transform .32s cubic-bezier(.2, .9, .3, 1.2), opacity .25s ease;
  cursor: default; box-sizing: border-box;
}
.vpa-n-toast.is-in { transform: none; opacity: 1; }
.vpa-n-toast.is-out { transform: translateX(-24px); opacity: 0; transition-duration: .22s; }
.vpa-n-toast[data-href] { cursor: pointer; }
.vpa-n-toast::before {
  content: ""; position: absolute; inset-block: 0; right: 0; width: 4px; background: var(--k);
}
.vpa-n-ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--k) 13%, #fff); color: var(--k);
}
.vpa-n-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vpa-n-tx { flex: 1; min-width: 0; padding-top: 1px; }
.vpa-n-tx b { display: block; font-size: 15px; font-weight: 800; line-height: 1.45; margin: 0 0 2px; color: #0f172a; }
.vpa-n-tx p { margin: 0; font-size: 13.5px; line-height: 1.65; color: #475569; overflow-wrap: anywhere; }
.vpa-n-tx .vpa-n-act {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 13px; font-weight: 800; color: var(--k); text-decoration: none;
}
.vpa-n-x {
  flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; padding: 0;
  background: transparent; color: #94a3b8; cursor: pointer; font-size: 20px; line-height: 1;
  display: grid; place-items: center;
}
.vpa-n-x:hover { background: #f1f5f9; color: #0f172a; }
.vpa-n-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: color-mix(in srgb, var(--k) 55%, transparent);
  transform-origin: left; animation: vpa-n-bar linear forwards;
}
.vpa-n-toast:hover .vpa-n-bar { animation-play-state: paused; }
@keyframes vpa-n-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.vpa-n-toast.k-success { --k: #059669; }
.vpa-n-toast.k-error, .vpa-n-toast.k-cancel { --k: #dc2626; }
.vpa-n-toast.k-warn, .vpa-n-toast.k-withdraw { --k: #d97706; }
.vpa-n-toast.k-wallet { --k: #059669; }
.vpa-n-toast.k-account { --k: #7c3aed; }
.vpa-n-toast.k-listing { --k: #0d9488; }
.vpa-n-toast.k-referral { --k: #db2777; }

/* The unread bell on site pages. */
.vpa-n-bell {
  position: fixed; z-index: 99998; bottom: 18px; left: 18px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 99px;
  background: var(--vpa-c, #035dcd); color: #fff !important; text-decoration: none !important;
  font-family: inherit; font-weight: 700; font-size: 14px; direction: rtl;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .4);
  transform: translateY(90px); transition: transform .4s cubic-bezier(.2, .9, .3, 1.2);
}
.vpa-n-bell.is-in { transform: none; }
.vpa-n-bell svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vpa-n-bell.is-ring svg { animation: vpa-n-ring 1s ease 2; transform-origin: 50% 10%; }
.vpa-n-bell b {
  min-width: 22px; height: 22px; line-height: 22px; padding: 0 6px; border-radius: 99px;
  background: #fff; color: var(--vpa-c, #035dcd); font-size: 12px; text-align: center;
}
@keyframes vpa-n-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(9deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }

@media (max-width: 600px) {
  .vpa-n-stack { top: 12px; left: 50%; transform: translateX(-50%); }
  .vpa-n-bell { bottom: 14px; left: 14px; padding: 9px 14px 9px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .vpa-n-toast, .vpa-n-bell { transition: opacity .2s ease; transform: none; }
  .vpa-n-bell.is-ring svg { animation: none; }
}

/* ---------------------------------------------------------------- «حسابي» in the header */
.vpa-hdr-li { display: flex !important; align-items: center; list-style: none; }
.vpa-hdr-slot { display: inline-flex !important; align-items: center; flex: none; margin: 0 10px; list-style: none; position: relative; z-index: 3; }
.vpa-hdr-slot::before, .vpa-hdr-slot::after { display: none !important; }
.vpa-hdr-abs { position: absolute !important; margin: 0; transform: translateY(-50%); z-index: 50; }
.vpa-hdr-abs.is-left { left: 16px; }
.vpa-hdr-abs.is-right { right: 16px; }
.vpa-hdr {
  display: inline-flex !important; align-items: center; gap: 8px; direction: rtl;
  padding: 7px 14px 7px 12px !important; border-radius: 99px; line-height: 1.3 !important;
  font-family: inherit; font-size: 14px !important; font-weight: 700 !important; text-decoration: none !important;
  white-space: nowrap; cursor: pointer; transition: filter .2s, background .2s, box-shadow .2s; box-sizing: border-box;
}
.vpa-hdr svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vpa-hdr.s-solid { background: var(--vpa-c, #035dcd) !important; color: #fff !important; box-shadow: 0 6px 16px -8px var(--vpa-c, #035dcd); }
.vpa-hdr.s-solid:hover { filter: brightness(1.08); }
.vpa-hdr.s-outline { background: transparent !important; color: inherit !important; border: 1.5px solid currentColor; }
.vpa-hdr.s-outline:hover { background: rgba(127,127,127,.1) !important; }
.vpa-hdr.s-link { background: transparent !important; color: inherit !important; padding-inline: 4px !important; }
.vpa-hdr-ic { display: grid; place-items: center; }
.vpa-hdr-av {
  position: relative; width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(255,255,255,.25); color: inherit; font-size: 13px; font-weight: 800; overflow: visible;
}
.vpa-hdr.s-outline .vpa-hdr-av, .vpa-hdr.s-link .vpa-hdr-av { background: var(--vpa-c, #035dcd); color: #fff; }
.vpa-hdr-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.vpa-hdr.is-user { padding-inline-start: 6px !important; }
.vpa-hdr-chev { width: 14px !important; height: 14px !important; opacity: .8; margin-inline-start: -2px; }
.vpa-hdr-n {
  position: absolute; top: -5px; left: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
  background: #ef4444; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center;
  box-shadow: 0 0 0 2px #fff; box-sizing: border-box;
}
.vpa-hdr-n.s { position: static; margin-inline-start: auto; box-shadow: none; }
.vpa-hdr-float {
  position: fixed; z-index: 99990; transform: translateY(-10px); opacity: 0; transition: transform .35s ease, opacity .3s ease;
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.45) !important;
}
.vpa-hdr-float.is-in { transform: none; opacity: 1; }
.vpa-hdr-float.s-outline, .vpa-hdr-float.s-link { background: #fff !important; color: #0f172a !important; border: 1px solid #e2e8f0; padding-inline: 12px !important; }
.vpa-hdr-float.p-top-left { top: 14px; left: 14px; }
.vpa-hdr-float.p-top-right { top: 14px; right: 14px; }
.vpa-hdr-float.p-bottom-left { bottom: 16px; left: 16px; }
.vpa-hdr-float.p-bottom-right { bottom: 16px; right: 16px; }
body.admin-bar .vpa-hdr-float.p-top-left, body.admin-bar .vpa-hdr-float.p-top-right { top: 46px; }

.vpa-hdr-menu {
  position: fixed; z-index: 2147482000; width: 260px; padding: 8px; border-radius: 16px; direction: rtl; text-align: right;
  background: #fff; color: #0f172a; border: 1px solid #e6eaf0; box-shadow: 0 24px 50px -18px rgba(15,23,42,.45);
  font-family: inherit; opacity: 0; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease;
}
.vpa-hdr-menu.is-in { opacity: 1; transform: none; }
.vpa-hdr-me { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid #eef1f5; }
.vpa-hdr-me b { display: block; font-size: 14.5px; }
.vpa-hdr-me small { display: block; font-size: 12px; color: #64748b; }
.vpa-hdr-av.lg { width: 40px; height: 40px; font-size: 17px; background: var(--vpa-c, #035dcd); color: #fff; }
.vpa-hdr-menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  color: #1e293b !important; text-decoration: none !important; font-size: 14px; font-weight: 600;
}
.vpa-hdr-menu a:hover { background: #f1f5f9; }
.vpa-hdr-menu a svg { width: 18px; height: 18px; fill: none; stroke: var(--vpa-c, #035dcd); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vpa-hdr-menu a span { flex: 1; }
.vpa-hdr-menu a b { font-size: 12.5px; color: #059669; }
.vpa-hdr-menu a.out { color: #dc2626 !important; margin-top: 4px; border-top: 1px solid #eef1f5; border-radius: 0 0 10px 10px; }
.vpa-hdr-menu a.out svg { stroke: #dc2626; }
@media (max-width: 782px) {
  .vpa-hdr-no-m, .vpa-hdr-float.no-m { display: none !important; }
  .vpa-hdr-slot { margin: 0 6px; }
  .vpa-hdr-slot .vpa-hdr-t { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
  .vpa-hdr-float .vpa-hdr-t { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 600px) {
  .vpa-hdr-slot .vpa-hdr-t, .vpa-hdr-slot .vpa-hdr-chev { display: none !important; }
  .vpa-hdr-slot .vpa-hdr { padding: 6px !important; }
  .vpa-hdr-abs.is-left { left: 10px; }
  .vpa-hdr-abs.is-right { right: 10px; }
}
