.language-menu {
  position: relative;
  display: inline-block;
  font-family: sans-serif;
  z-index: 9999;
}

.lang-button {
    transition: background .3s, color .3s;
    color: #ffa250;
    border: solid 1px #ffa250;
    padding: 6px 4px;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-left: 25px;
}
	.lang-button:hover {
		    color: rgb(3, 37, 65);
		background: #ffa250;
	}

.lang-options {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background-color: #1f1f1f;
  border-radius: 6px;
  padding: 6px 0;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.lang-options li {
  list-style: none;
}
.lang-options a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
}
.lang-options a:hover {
  background-color: #333;
}

.lang-code-only {
  font-size: 13px;
  text-transform: uppercase;
}

.lang-code {
  opacity: 0.6;
  margin-right: 6px;
}



/* Container principal */
.user-menu-container {
    margin: 0px 21px 0px 10px;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px 10px;
    background: rgb(27 41 61);
    border-radius: 28px;
}

/* Nome do usuário */
.user-name {
    color: #fff;
    font-weight: 500;
    margin-right: 8px;
    text-transform: capitalize;
    font-size: .75rem;
    font-family: Roboto, sans-serif;
}

/* Avatar */
.user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Dropdown */
.user-dropdown {
    display: none;
    position: absolute;
    top: 24px;
    right: 0;
    background: #1c1c1c;
    border-radius: 8px;
    min-width: 160px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    overflow: hidden;
    z-index: 99;
}

.sub_media {
    max-width: var(--maxPrimaryPageWidth);
    width: 100%;
    display: flex;
    justify-content: center;
	align-items: center;
	}
	.flex {
	justify-content: flex-end;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
	}

/* Opções */
.user-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #ddd;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.user-dropdown a:hover {
    background: #333;
}

/* Mostrar ao passar mouse no desktop */
@media (hover:hover) {
    .user-menu-container:hover .user-dropdown {
        display: block;
    }
}

/* Mobile: só mostrar avatar */
@media (max-width: 768px) {
    .user-name {
        display: none;
    }
    .user-avatar {
        width: 30px;
        height: 30px;
    }
	.user-menu-container {
    margin: 0px 21px 0px 10px;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px 4px;
    background: rgb(27 41 61);
    border-radius: 28px;
	}
}
	
    
    /* Mobile apenas */
.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }

  .mobile-language-container {
    padding:0;

  }
  .mobile-lang-toggle {
    color: #fff;
    font-weight: bold;
    background: #222;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
  }
  .mobile-lang-list {
    display: none;
    margin-top: 8px;
  }
  .mobile-lang-list li {
    margin-bottom: 8px;
  }
  .mobile-lang-list a {
    color: #ccc;
    text-decoration: none;
  }
  .mobile-lang-list a:hover {
    color: #fff;
  }
}