Phonetic loan from English 'yuppie' (yǎpǐ ≈ ya-pee). Cleverly chosen characters:
雅 (yǎ, elegant/refined) +
痞 (pǐ, rascal/punk) — a self-aware label combining 'tasteful' with a hint of mocking 'douchebag'. Coined in Taiwan in the late 1980s and now used across Mandarin-speaking regions, often in the compound
雅痞族 (yǎpǐzú, the yuppie tribe).