/* ✅ Cluster Container (Uses CSS Grid) */
.friend-tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Ensures even spacing */
    gap: 15px; /* Adds spacing between tiles */
    padding: 15px;
    background-color: rgba(20, 20, 20, 0.8); /* Slight background overlay */
    border-radius: 12px; /* Rounded corners */
    max-width: 100%; /* Makes sure it adjusts to different screens */
    
  }
  
  /* ✅ Friend Tile (Each Individual Profile Card) */
  .friend-tile {
    width: 200px; /* Consistent tile width */
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    z-index: 1000 !important;
    font-family: var(--font-work-sans);
  }
  
  .friend-tiles {
    display: flex; /* Use flexbox for layout */
    flex-direction: row; /* Stack tiles vertically */
    gap: 5px; /* Add spacing between tiles */
    position: absolute;
    top: 70px; /* Center vertically */
    transform: translateX(-50%);
    z-index: 1000 !important;
  }
  
  
  .team-tiles {
    z-index: 1000 !important;
    display: flex;
    gap: 10px;
  }
  
  
  /* ✅ Background Image */
  .friend-tile-background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    z-index: -1;
  }
  
  /* ✅ Three-Dot Menu */
  .menu-icon {
    position: absolute;
    top: 6px;
    right: 12px;
    font-size: 20px;
    color: white;
    cursor: pointer;
  }
  
  /* ✅ Avatar Wrapper */
  .friend-avatar-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
  }
  
  /* ✅ Outer Gradient Ring */
  .friend-avatar-ring {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient( 
      90deg, 
      #8810F9 0%, 
      #39A4F2 20.08%, 
      #54E5DF 34.95%, 
      #E33CF5 63.37%, 
      #8810F9 100%
    ); 
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Online dot styling */
  .online-dot {
    position: absolute;
    bottom: 5px;
    right: 10px;
    width: 12px;
    height: 12px;
    background-color: #3ec569;
    border: 3px solid black;
    border-radius: 50%;
  }
  
  
  /* Offline variant: override background to grey */
  .friend-avatar-ring.offline {
    background: #454756;
  }
  
  /* ✅ Inner Black Space */
  .friend-avatar-gap {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* ✅ Avatar */
  .friend-avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  /* ✅ Username */
  .friend-username {
    font-weight: bold;
    color: white;
    font-size: 16px;
    padding-top: 30px;
    font-family: var(--font-work-sans);
  }
  
  /* ✅ Full Name */
  .friend-fullname {
    color: #ccc;
    font-size: 14px;
  }
  
  /* ✅ Location with Flag */
  .friend-location {
    display: flex;
    align-items: center;
    margin-top: 34px;
  }
  
  .friend-location-team {
    display: flex;
    align-items: center;
    margin-top: 20px;
  }
  
  .location-flag {
    width: 18px;
    height: 12px;
    margin-right: 5px;
  }
  
  .friend-location-text {
    color: white;
    font-size: 14px;
  }
  
  .team-members-info {
    display: flex;
    align-items: center;
    margin-top: 5px;
  }
  
  .team-members-avatars {
    display: flex;
    align-items: center;
    position: relative;
    height: 28px; /* Ensures proper alignment */
  }
  
  .mini-member-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #222; /* Small border for separation */
    position: relative;
    margin-left: -10px; /* Negative margin to overlap */
    transition: transform 0.2s ease-in-out;
  }
  
  /* Ensure first avatar does not move */
  .mini-member-avatar:first-child {
    margin-left: 0;
  }
  
  /* If more than 3 members, show "+X" indicator */
  .more-members {
    font-size: 12px;
    color: #aaa;
    background: #222;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -10px; /* Keep overlapping effect */
    position: relative;
    font-weight: bold;
  }
  
  /* Member count */
  .team-members-count {
    font-size: 14px;
    color: #aaa;
    margin-left: 8px;
  }
  