.sidebar {
  width: 260px;
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 20;
  background: #262b30;
  flex-direction: column;
  padding: 0 22px 22px 22px;
  display: flex;
  animation: none !important;
  height: 100%;
  box-shadow: -6px 0 12px rgba(0, 0, 0, 0.3);
  }

.topsidebar{
    position:sticky;
    top:0;
    z-index:1000;
    display:flex;
    align-items:center;
    gap:18px;
    width: 100%;
    height:76px;
    padding:0 22px;
    backdrop-filter:blur(18px);
    border-bottom:1px solid var(--border);
    margin-bottom:20px;
}

  .brand {
  border-bottom: 2px solid var(--border);
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  display: flex;
  }

  .brand img {
  filter: brightness(0) invert();
  opacity: .92;
  width: 46px;
  }

  .brand h2 {
  letter-spacing: 2px;
  font-size: 18px;
  font-weight: 700;
  }

  .brand span {
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
  display: block;
  }

  .sidebar nav {
  flex-direction: column;
  gap: 6px;
  display: flex;
  }

  .sidebar nav a {
  color: var(--muted);
  transition: background var(--speed), color var(--speed), transform var(--speed);
  user-select: none;
  border-radius: 12px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  display: flex;
  position: relative;
  }

  .sidebar nav a .material-icons {
  font-size: 20px;
  }

  .sidebar nav a:hover {
  background: var(--surface2);
  color: var(--text);
  transform: translateX(3px);
  }

  .sidebar nav a.active {
  color: #fff;
  background: #3d4650;
  box-shadow: inset 0 0 0 1px #ffffff0d;
  }

  .sidebar nav a::before{
  content:"";
  position:absolute;
  left:6px;
  top:50%;
  transform:translateY(-50%) scaleY(0);
  transform-origin:center;
  width:4px;
  height:20px;
  border-radius:20px;
  background:#fff;
  transition:.25s;
  }

  nav a{
  position:relative;
  overflow:hidden;
  }

  nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0;
  height:2px;
  background:#3a4047;
  transition:.18s;

  }

  nav a:hover::after{
  width:100%;
  }

  .sidebar nav a:hover::before{
  transform:translateY(-50%) scaleY(1);
  }

  .sidebar nav a.active::before{
  transform:translateY(-50%) scaleY(1);
  }

  .clearance {
  background: var(--surface);
  border-radius: 14px;
  border: 2px solid var(--border);
  margin-top: auto;
  padding: 18px;
  }

  .clearance small {
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-size: 11px;
  display: block;
  }

  .clearance h3 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
  }

  .badge {
  border-radius: 50%;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  display: inline-block;
  }

  .online {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  }

  .online{
  animation:pulse 2.5s infinite;
  }

  @keyframes pulse{
  0%{
  box-shadow:0 0 0 rgba(87,212,141,0);
  }
  50%{
  box-shadow:0 0 16px rgba(87,212,141,.45);
  }
  100%{
  box-shadow:0 0 0 rgba(87,212,141,0);
  }
  }

  @keyframes glow{
  0%,100%{
  opacity:1;
  }
  50%{
  opacity:.5;
  }
}