/* Karabass Premium Lounge: adaptive Apple-inspired primary navigation */
.yp_side_drawer {
  color: var(--kb-warm-text);
  background: #130e16 !important;
  border-right: 1px solid rgba(255, 242, 250, 0.08);
  box-shadow: 10px 0 32px rgba(6, 3, 8, 0.16) !important;
}

.yp_side_drawer > div {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.yp_side_drawer ul.sections.menu_links {
  margin: 0;
  border: 0 !important;
}

.yp_side_drawer ul.sections.menu_links li {
  min-width: 0;
}

.yp_side_drawer ul.sections.menu_links li a {
  min-width: 0;
  position: relative;
  color: var(--kb-warm-muted) !important;
  font-family: var(--kb-font-ui, sans-serif) !important;
  font-weight: 500 !important;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms ease, background 160ms ease !important;
}

.yp_side_drawer ul.sections.menu_links li a svg {
  width: 21px !important;
  min-width: 21px;
  height: 21px !important;
  color: currentColor;
  flex: 0 0 21px;
}

.yp_side_drawer ul.sections.menu_links li a:hover,
.yp_side_drawer ul.sections.menu_links li a:focus-visible {
  color: #fff8ff !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

.yp_side_drawer ul.sections.menu_links li.active a {
  color: #fff !important;
  background: #2a1d2f !important;
}

.yp_side_drawer ul.sections.menu_links li.active a::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  background: var(--kb-accent);
  border-radius: 0 999px 999px 0;
}

@media (min-width: 1431px) {
  .yp_side_drawer {
    width: 200px !important;
  }

  .yp_side_menu.has_side_menu {
    margin-left: 200px !important;
  }

  header.navbar-fixed-top,
  header.navbar-fixed-top > nav.navbar {
    left: 200px !important;
  }

  .yp_side_drawer > div {
    padding: 10px 8px 18px;
  }

  .yp_side_drawer ul.sections.menu_links {
    padding: 4px 0 !important;
  }

  .yp_side_drawer ul.sections.menu_links li {
    width: 100% !important;
    margin: 2px 0 !important;
    float: none !important;
  }

  .yp_side_drawer ul.sections.menu_links li a {
    width: 100%;
    min-height: 44px;
    height: 44px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    border-radius: 11px !important;
    font-size: 14px !important;
    line-height: 20px !important;
    text-align: left !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .yp_side_drawer ul.sections.menu_links li a svg {
    margin: 0 !important;
    display: block !important;
  }
}

@media (min-width: 1252px) and (max-width: 1430px) {
  .yp_side_drawer {
    width: 84px !important;
    overflow: visible !important;
  }

  .yp_side_drawer > div {
    overflow-x: visible !important;
    padding: 8px 6px 16px;
  }

  .yp_side_menu.has_side_menu {
    margin-left: 84px !important;
  }

  header.navbar-fixed-top,
  header.navbar-fixed-top > nav.navbar {
    left: 84px !important;
  }

  .yp_side_drawer ul.sections.menu_links {
    padding: 0 !important;
    overflow: visible !important;
  }

  .yp_side_drawer ul.sections.menu_links li {
    width: 100% !important;
    margin: 2px 0 !important;
    float: none !important;
    overflow: visible;
  }

  .yp_side_drawer ul.sections.menu_links li a {
    width: 100%;
    min-height: 48px;
    height: 48px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
    border-radius: 11px !important;
    font-size: 0 !important;
    line-height: 1 !important;
  }

  .yp_side_drawer ul.sections.menu_links li a svg {
    margin: 0 !important;
    display: block !important;
  }

  .yp_side_drawer ul.sections.menu_links li a::after {
    content: attr(data-kb-tooltip);
    position: absolute;
    top: 50%;
    left: calc(100% + 10px);
    z-index: 2147482000;
    max-width: 220px;
    padding: 7px 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    color: #fff8ff;
    background: #2a1d2f;
    border: 1px solid rgba(255, 242, 250, 0.12);
    border-radius: 9px;
    box-shadow: 0 10px 28px rgba(6, 3, 8, 0.3);
    font-family: var(--kb-font-ui, sans-serif);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    text-align: left;
    white-space: nowrap;
    transform: translate(4px, -50%);
    transition: opacity 160ms ease 350ms, transform 180ms ease 350ms, visibility 0s linear 510ms;
  }

  .yp_side_drawer ul.sections.menu_links li a:hover::after,
  .yp_side_drawer ul.sections.menu_links li a:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
    transition-delay: 350ms, 350ms, 0s;
  }
}

@media (max-width: 1251px) and (min-width: 769px) {
  .yp_side_drawer {
    left: -340px !important;
    width: min(88vw, 340px) !important;
    max-width: 340px !important;
    background: #171019 !important;
  }

  body.side_open .yp_side_drawer {
    left: 0 !important;
  }

  .yp_side_drawer.hide_side_menu {
    left: -340px !important;
  }

  .yp_side_drawer > div {
    padding: 10px 8px 24px !important;
  }

  .yp_side_drawer ul.sections.menu_links li,
  .yp_side_drawer ul.sections.menu_links li a {
    height: auto !important;
  }

  .yp_side_drawer ul.sections.menu_links li a {
    min-height: 48px;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center;
    gap: 11px;
    border-radius: 11px !important;
    font-size: 15px !important;
    line-height: 20px !important;
  }

  .yp_side_drawer ul.sections.menu_links li a svg {
    margin: 0 !important;
    display: block !important;
  }
}

@media (max-width: 768px) {
  .yp_side_drawer {
    background: rgba(19, 14, 22, 0.97) !important;
    border-top: 1px solid rgba(255, 242, 250, 0.09);
    border-right: 0;
    box-shadow: 0 -10px 30px rgba(6, 3, 8, 0.3) !important;
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(56px + env(safe-area-inset-bottom)) !important;
  }

  .yp_side_drawer ul.sections.menu_links li a {
    color: var(--kb-warm-muted) !important;
    font-family: var(--kb-font-ui, sans-serif) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
  }

  .yp_side_drawer ul.sections.menu_links li a svg {
    width: 20px !important;
    height: 20px !important;
    margin: 7px auto 2px !important;
  }

  .yp_side_drawer ul.sections.menu_links li.active a {
    color: #d783ff !important;
    background: transparent !important;
  }

  .yp_side_drawer ul.sections.menu_links li.active a::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yp_side_drawer,
  .yp_side_menu,
  .yp_side_drawer *::after {
    transition: none !important;
  }
}
