.backdrop {
	position: fixed;
	inset: 0;
	z-index: 15000;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
	padding: 20px;
	box-sizing: border-box;
}

/* Fixed 600px wide, shrinks vertically with the viewport up to a
   780px ceiling. The 3px border is painted with the member's accent
   color inline so the accent bleeds "all around" the card. */
.cardWrap {
	position: relative;
	width: 600px;
	max-width: calc(100vw - 40px);
	height: min(780px, calc(100svh - 40px));
	max-height: 780px;
	background-color: var(--background-primary, #111214);
	border: 3px solid transparent;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.closeButton {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.5);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.1s, transform 0.1s;
}

.closeButton:hover {
	background-color: rgba(0, 0, 0, 0.75);
	transform: scale(1.05);
}

.banner {
	flex: 0 0 auto;
	height: 210px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Header row — holds the pulled-up avatar on the left and the
   action buttons (Edit Profile / Message / Add Friend / More)
   flush to the right. `align-items: flex-end` sits the button
   row at the bottom of the avatar so the primary button lines
   up with the avatar's lower third, matching the Fluxer
   reference. */
.headerRow {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	padding: 0 24px;
	flex-shrink: 0;
}

/* Avatar wrap — pulls up over the banner so the bottom third of
   the avatar overlaps into the body. The dark ring around the
   avatar is NOT an accent-colored border — it's the card's
   background color bleeding through the wrapper's padding,
   creating a Fluxer/Discord-style cutout against the banner
   above. */
.avatarWrap {
	position: relative;
	margin-top: -56px;
	padding: 6px;
	border-radius: 50%;
	background-color: var(--background-primary, #111214);
	box-sizing: content-box;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ── Action row (Edit Profile / Message / Add Friend / More) ──
   Sits flush against the right edge of the header row, bottom-
   aligned with the avatar so the primary button baseline lines
   up with the lower third of the avatar. */
.actionRow {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 4px;
}

.primaryButton {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	border: none;
	border-radius: 6px;
	background-color: var(--brand-primary, #4641d9);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.1s, filter 0.1s;
}

.primaryButton:hover {
	filter: brightness(1.08);
}

.primaryButton:active {
	filter: brightness(0.92);
}

.iconButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 6px;
	background-color: var(--background-secondary, rgba(255, 255, 255, 0.06));
	color: var(--text-primary, #fff);
	cursor: pointer;
	transition: background-color 0.1s;
}

.iconButton:hover {
	background-color: var(--background-modifier-hover, rgba(255, 255, 255, 0.1));
}

/* ── More dropdown ───────────────────────────────────────────
   Anchored to the three-dots button via relative positioning
   on the wrapper. Sized to the reference popup (~200px wide),
   background matches the floating surfaces elsewhere in the
   app. Opens downward + left-aligned so it never clips the
   card's right edge. */
.moreWrap {
	position: relative;
}

.moreMenu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 3;
	min-width: 200px;
	padding: 6px;
	background-color: var(--background-floating, #18191c);
	border: 1px solid var(--background-modifier-accent, rgba(255, 255, 255, 0.08));
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.moreMenuItem {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 10px;
	background: transparent;
	border: none;
	border-radius: 4px;
	color: var(--text-primary, #fff);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.08s;
}

.moreMenuItem > span {
	flex: 1;
	text-align: left;
}

.moreMenuItem:hover {
	background-color: var(--background-modifier-hover, rgba(255, 255, 255, 0.08));
}

.moreMenuItemDanger {
	color: var(--status-danger, #ed4245);
}

.moreMenuItemDanger:hover {
	background-color: var(--status-danger, #ed4245);
	color: #fff;
}

.moreMenuSeparator {
	height: 1px;
	background-color: var(--background-modifier-accent, rgba(255, 255, 255, 0.08));
	margin: 4px 0;
}

/* Status dot — pinned to the bottom-right of the avatar wrap. The
   thick 4px ring blends with the card background so the dot reads
   as "cut out of the avatar" the way Discord's does. */
.statusDot {
	position: absolute;
	bottom: 2px;
	right: 2px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 4px solid var(--background-primary, #111214);
	color: #fff;
	box-sizing: border-box;
	z-index: 2;
}

.statusOnline {
	background-color: #3ba55d;
	color: #fff;
}

.statusIdle {
	background-color: #faa61a;
	color: #fff;
}

.statusDnd {
	background-color: #ed4245;
	color: #fff;
}

.statusOffline {
	background-color: #747f8d;
	color: #fff;
}

.body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 12px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nameBlock {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.displayName {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: var(--text-primary, #fff);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.realName {
	font-size: 13px;
	color: var(--text-primary-muted, #a0a3a8);
}

.divider {
	height: 1px;
	background-color: var(--background-modifier-accent, rgba(255, 255, 255, 0.06));
	margin: 4px 0;
}

.section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sectionLabel {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-primary-muted, #a0a3a8);
}

.bioText {
	font-size: 14px;
	line-height: 1.5;
	color: var(--text-primary, #fff);
	white-space: pre-wrap;
	word-wrap: break-word;
}

.rolesList {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.rolePill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background-color: var(--background-secondary, rgba(255, 255, 255, 0.04));
	border: 1px solid var(--background-modifier-accent, rgba(255, 255, 255, 0.08));
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
}

.roleDot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.roleName {
	color: var(--text-primary, #fff);
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.idRow {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background-color: var(--background-secondary, rgba(255, 255, 255, 0.03));
	border-radius: 6px;
}

.idValue {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 13px;
	color: var(--text-primary, #fff);
}

.copyButton {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: transparent;
	border: none;
	border-radius: 4px;
	color: var(--text-primary-muted, #a0a3a8);
	cursor: pointer;
	transition: background-color 0.1s, color 0.1s;
}

.copyButton:hover {
	background-color: var(--background-modifier-hover, rgba(255, 255, 255, 0.06));
	color: var(--text-primary, #fff);
}
