/* Shared Manalyza navigation shell. */

:root {
  --mz-mobile-bar-h: 58px;
}

.mz-sidebar {
  width: 248px;
  flex: none;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: #121216;
  border-right: 1px solid #212128;
  box-sizing: border-box;
  color: #dfdfdf;
  font-family: Poppins, sans-serif;
}

/* Desktop header: the old collapse button is intentionally gone. */
.mz-sidebar__head {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px 16px;
  box-sizing: border-box;
}

.mz-sidebar__logo {
  display: block;
  width: min(100%, 190px);
  height: auto;
  max-height: 42px;
  object-fit: contain;
  object-position: center;
}

.mz-sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mz-sidebar__header {
  padding: 16px 10px 6px;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8f8f9b;
  font-weight: 700;
}

.mz-sidebar__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 10px;
  color: #9a9aa6;
  font-size: 13px;
  font-weight: 500;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  pointer-events: auto;
}

.mz-sidebar__item:hover {
  background: #1c1c23;
  color: #ededf1;
}

.mz-sidebar__item.active {
  color: #fff;
  font-weight: 600;
  background: #19191e;
}

.mz-sidebar__item.active::after {
  content: '';
  width: 6px;
  height: 6px;
  flex: none;
  margin-left: 2px;
  border-radius: 50%;
  background: #e2c735;
  box-shadow: 0 0 0 3px rgba(226,199,53,.08);
}

.mz-sidebar__icon {
  width: 18px;
  height: 18px;
  flex: none;
  background: #71717c;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.mz-sidebar__item.active .mz-sidebar__icon { background: #01cdda; }

.mz-sidebar__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.mz-sidebar__badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #2ddb91;
}

.mz-sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px;
  padding: 10px;
  background: #17171d;
  border: 1px solid #23232b;
  border-radius: 12px;
}

.mz-sidebar__avatar {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: #1e1e26;
  border: 1px solid #2a2a33;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mz-sidebar__avatar img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.mz-sidebar__userinfo { flex: 1; min-width: 0; }

.mz-sidebar__username {
  font-size: 12.5px;
  font-weight: 600;
  color: #ededf1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mz-sidebar__statusline {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-top: 2px;
}

.mz-sidebar__dots {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: none;
  height: 10px;
}

.mz-sidebar__dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid #17171d;
  position: relative;
  flex: none;
}

.mz-sidebar__dot + .mz-sidebar__dot { margin-left: -3px; }
.mz-sidebar__dot--vip1 { background: #01cdda; }
.mz-sidebar__dot--vip2 { background: #f04797; }
.mz-sidebar__dot--vip3 { background: #f04797; box-shadow: 0 0 0 2px rgba(240,71,151,.10); }
.mz-sidebar__dot--watcher { background: #6bc60a; }
.mz-sidebar__dot--donator { background: #eab308; }
.mz-sidebar__dot--admin { background: #01cdda; box-shadow: 0 0 0 2px rgba(1,205,218,.10); }

.mz-sidebar__plan {
  min-width: 0;
  font-size: 11px;
  color: #8f8f9b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mz-sidebar__signin {
  width: 34px;
  height: 34px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 9px;
  background: #1a1a20;
  border: 1px solid #2a2a33;
  color: #9a9aa6;
  font-size: 0;
  white-space: nowrap;
  transition: color .12s ease, border-color .12s ease, background .12s ease;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
}

.mz-sidebar__signin:hover { color: #f4f4f6; border-color: #3a3a46; background: #1f1f27; }
.mz-sidebar__item > * { pointer-events: none; }
.mz-sidebar__item[hidden] { display: none !important; }

/* Mobile top bar: hidden on desktop. */
.mz-mobile-topbar,
.mz-sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  .mz-mobile-topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1005;
    height: var(--mz-mobile-bar-h);
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 0 12px;
    box-sizing: border-box;
    background: rgba(18,18,22,.97);
    border-bottom: 1px solid #24242b;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .mz-mobile-topbar__menu {
    width: 40px;
    height: 40px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #c7c7ce;
    cursor: pointer;
  }

  .mz-mobile-topbar__menu:hover,
  .mz-mobile-topbar__menu:focus-visible { background: #1c1c22; outline: none; }

  .mz-mobile-topbar__menu span {
    display: block;
    width: 19px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
    transform-origin: center;
  }

  .mz-sidebar-mobile-open .mz-mobile-topbar__menu span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .mz-sidebar-mobile-open .mz-mobile-topbar__menu span:nth-child(2) { opacity: 0; }
  .mz-sidebar-mobile-open .mz-mobile-topbar__menu span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

  .mz-mobile-topbar__brand {
    justify-self: center;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    text-decoration: none;
  }

  .mz-mobile-topbar__brand img {
    display: block;
    width: 31px;
    height: 31px;
    object-fit: contain;
  }

  .mz-mobile-topbar__spacer { width: 40px; height: 40px; justify-self: end; }

  /* On mobile the sidebar is a drawer, never a permanent icon rail. */
  .mz-sidebar {
    position: fixed;
    top: var(--mz-mobile-bar-h);
    left: 0;
    z-index: 1004;
    width: min(304px, calc(100vw - 42px));
    height: calc(100dvh - var(--mz-mobile-bar-h));
    max-height: calc(100vh - var(--mz-mobile-bar-h));
    transform: translateX(-102%);
    transition: transform .2s cubic-bezier(.22,.61,.36,1);
    box-shadow: 18px 0 44px rgba(0,0,0,.34);
    will-change: transform;
  }

  .mz-sidebar-mobile-open .mz-sidebar { transform: translateX(0); }

  .mz-sidebar-backdrop {
    position: fixed;
    inset: var(--mz-mobile-bar-h) 0 0 0;
    z-index: 1003;
    display: block;
    background: rgba(5,5,8,.58);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .mz-sidebar-mobile-open .mz-sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mz-sidebar__head {
    min-height: 72px;
    padding: 18px 18px 12px;
    justify-content: flex-start;
  }

  .mz-sidebar__logo {
    width: 184px;
    max-height: 40px;
    object-position: left center;
  }

  .mz-sidebar__nav { padding: 2px 10px 12px; }
  .mz-sidebar__item { padding: 10px 11px; font-size: 13px; }
  .mz-sidebar__user { margin-bottom: max(10px, env(safe-area-inset-bottom)); }

  body.mz-sidebar-drawer-open { overflow: hidden; }
  body.mz-route-login .mz-mobile-topbar,
  body.mz-route-login .mz-sidebar-backdrop { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .mz-sidebar,
  .mz-sidebar-backdrop,
  .mz-mobile-topbar__menu span { transition-duration: .01ms !important; }
}

.mz-sidebar__icon-news {background:currentColor; mask:url('/assets/icons/news.svg?v=1793012820') center/contain no-repeat; -webkit-mask:url('/assets/icons/news.svg?v=1793012820') center/contain no-repeat;}

/* News icon uses a real inline SVG: no external mask or browser-specific rendering. */
.mz-sidebar__news-svg { width:18px; height:18px; flex:none; display:block; color:#71717c; }
.mz-sidebar__item.active .mz-sidebar__news-svg { color:#01cdda; }
.mz-sidebar__item:hover .mz-sidebar__news-svg { color:#ededf1; }
