/* ---------------------------------------------------
   Hover navigation menu for the floating profile image
   Dark theme — pairs with custom.css / account.php
--------------------------------------------------- */
 
.profile-wrap{
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}
 
/* the floating-btn image now sits inside .profile-wrap,
   so drop its own position:fixed and let the wrapper handle placement */
.profile-wrap .floating-btn{
  position: static;
  bottom: auto;
  right: auto;
  display: block;
}
 
.hover-menu{
  position: absolute;
  bottom: 72px;
  right: 0;
  width: max-content;
  background: #1b1c22;
  border: 1px solid #2b2d36;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
 
/* small pointer arrow connecting the menu to the button */
.hover-menu::after{
  content: "";
  position: absolute;
  bottom: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: #1b1c22;
  border-right: 1px solid #2b2d36;
  border-bottom: 1px solid #2b2d36;
  transform: rotate(45deg);
}
 
.profile-wrap:hover .hover-menu,
.profile-wrap:focus-within .hover-menu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
 
.hover-menu ul{
  list-style: none;
  padding-left: 0%;
  margin-bottom: 0%;
}

.hover-menu ul li {
   padding-left: 0%;
}
 
.hover-menu li + li{
  margin-top: 2px;
}
 
.hover-menu a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  justify-content: center;
  color: #cfd2dc;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
 
.hover-menu a i{
  width: 16px;
  text-align: center;
  color: #767a8a;
  transition: color 0.15s ease;
}
 
.hover-menu a:hover,
.hover-menu a:focus-visible{
  background: #262832;
  color: #ffffff;
}
 
.hover-menu a:hover i,
.hover-menu a:focus-visible i{
  color: #3498db;
}
 
.hover-menu .menu-divider{
  height: 1px;
  background: #2b2d36;
  margin: 6px 4px;
}
 
.hover-menu a.logout-link:hover,
.hover-menu a.logout-link:focus-visible{
  background: #34222a;
  color: #ff6b6b;
}
.hover-menu a.logout-link:hover i,
.hover-menu a.logout-link:focus-visible i{
  color: #ff6b6b;
}