.desktop-sidebar-host {
  display: none;
}

@media (min-width: 1025px) {
  .desktop-sidebar-host {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--desktop-sidebar-width, 64px);
    height: 100dvh;
    z-index: 30;
    padding: 0;
    pointer-events: none;
    transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }


  .desktop-sidebar {
    height: 100%;
    width: 100%;
    pointer-events: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(180deg, rgba(16, 17, 19, 0.98), rgba(10, 11, 13, 0.98));
    backdrop-filter: blur(8px);
    border-radius: 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.09),
      0 0 50px rgba(0, 0, 0, 0.2);
  }

  .desktop-sidebar-top {
    position: relative;
    height: 82px;
    margin-bottom: 10px;
  }

  .desktop-sidebar-toggle {
    all: unset;
    position: absolute;
    left: 6px;
    top: 48px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 2;
  }

  .desktop-sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.06);
  }

  .desktop-sidebar-toggle:active {
    transform: scale(0.96);
  }

  .sidebar-toggle-burger {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 9px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.02);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  }

  .sidebar-toggle-line {
    width: 10px;
    height: 2px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.42);
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .desktop-sidebar-toggle:hover .sidebar-toggle-burger {
    border-color: rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.05);
  }

  .sidebar-toggle-burger.expanded {
    border-color: rgba(255, 255, 255, 0.72);
  }

  .sidebar-toggle-burger.expanded .sidebar-toggle-line {
    background: rgba(255, 255, 255, 0.72);
  }

  .sidebar-toggle-burger.expanded .sidebar-toggle-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }

  .sidebar-toggle-burger.expanded .sidebar-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .sidebar-toggle-burger.expanded .sidebar-toggle-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .desktop-sidebar-brand-logo-static {
    position: absolute;
    left: 6px;
    top: 6px;
    height: 24px;
    width: auto;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.14));
    user-select: none;
    -webkit-user-drag: none;
    opacity: 1;
  }

  .desktop-sidebar-brand-badge {
        position: absolute;
        left: 69px;
        top: 9px;
        height: 21px;
        border-radius: 9999px !important;
        transform: none;
        transition: opacity 0.2s 
ease, transform 0.2s 
ease, max-width 0.2s 
ease;
        white-space: nowrap;
        overflow: hidden;
        max-width: 180px;
        padding: 0px 10px 0px 10px;
        background: #191919 !important;
        color: #b0b0b0 !important;
        border: 1px solid #737373 !important;
        box-shadow: none !important;
        font-weight: 500;
        font-size: 0.8rem;
    }

  .desktop-sidebar-brand-badge.hide {
    opacity: 0;
    max-width: 0;
    transform: translateX(-6px);
    pointer-events: none;
  }

  .desktop-sidebar-brand-badge.show {
    opacity: 1;
    max-width: 190px;
    transform: translateX(0);
  }

  .desktop-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .desktop-sidebar-item {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
    border-radius: 14px !important;
  }

  .desktop-sidebar-item.active {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
  }

  .desktop-sidebar-item:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.09) !important;
    color: #fff !important;
  }

  .desktop-sidebar-item-icon {
    min-width: 24px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    transform: none !important;
  }

  .desktop-sidebar-item-text-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.1;
    transition: opacity 0.2s ease, max-width 0.2s ease;
    margin: 0;
    padding: 0;
  }

  .desktop-sidebar-item-text-wrap.hide {
    opacity: 0;
    max-width: 0;
  }

  .desktop-sidebar-item-text-wrap.show {
    opacity: 1;
    max-width: 220px;
  }

  .desktop-sidebar-item-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.96);
  }

  .desktop-sidebar-item-description {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.62);
  }

  footer.main-blocks {
    display: none !important;
  }
}
