/* Профиль — layout как MEAT74: баннер → вкладки → карточка | плитки | сервера */

.b16-layout__main .b16-profile-page {
	width: 100%;
	max-width: none;
	padding: 0 12px 28px;
	box-sizing: border-box;
}

.b16-profile {
	--b16-prof-accent: #7c5cff;
	--b16-prof-name: #f0a04b;
	--b16-prof-panel: #16161a;
	--b16-prof-line: rgba(255, 255, 255, 0.07);
	--b16-prof-bg: #0c0c0f;
	color: #fff;
}

.b16-profile__banner {
	position: relative;
	height: 320px;
	border-radius: 18px 18px 0 0;
	background:
		linear-gradient(135deg, rgba(124, 92, 255, 0.12) 0%, rgba(0, 0, 0, 0) 50%),
		#1a1520 center/cover no-repeat;
	background-size: cover;
	background-position: center top;
	border: 1px solid var(--b16-prof-line);
	border-bottom: none;
	overflow: hidden;
}

.b16-profile__banner::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(8, 8, 12, 0.55) 100%);
	pointer-events: none;
}

.b16-profile__banner-cta {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 10px;
	background: rgba(34, 197, 94, 0.92);
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
	transition: filter 0.15s ease, transform 0.15s ease;
}

.b16-profile__banner-cta:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
	color: #fff !important;
	text-decoration: none !important;
}

.b16-profile__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	padding: 0 6px;
	width: 100%;
	border: 1px solid var(--b16-prof-line);
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.28);
}

.b16-profile__tab {
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.48);
	padding: 14px 18px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.b16-profile__tab i {
	font-size: 16px;
	opacity: 0.85;
}

.b16-profile__tab:hover {
	color: rgba(255, 255, 255, 0.85);
}

.b16-profile__tab.is-active {
	color: #fff;
	border-bottom-color: #fff;
}

.b16-profile__visitor-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.b16-profile__vbtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: #141418;
	color: rgba(255, 255, 255, 0.92);
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.b16-profile__vbtn i {
	font-size: 15px;
	opacity: 0.9;
	flex-shrink: 0;
}

.b16-profile__vbtn:hover {
	background: #1c1c22;
	border-color: rgba(255, 255, 255, 0.14);
	color: #fff;
	text-decoration: none !important;
}

.b16-profile__shell {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 16px;
	align-items: stretch;
	padding: 18px;
	background: var(--b16-prof-bg);
	border: 1px solid var(--b16-prof-line);
	border-top: none;
	border-radius: 0 0 18px 18px;
}

.b16-profile__col {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.b16-profile__body {
	padding: 16px 0 8px;
	background: transparent;
	border: none;
	border-radius: 0;
}

.b16-profile__panel {
	display: none;
	min-height: 100%;
}

.b16-profile__panel.is-active {
	display: block;
}

.b16-profile__info-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
	gap: 14px;
	align-items: start;
}

.b16-profile__id-card {
	background: var(--b16-prof-panel);
	border: 1px solid var(--b16-prof-line);
	border-radius: 14px;
	padding: 20px 14px 14px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: stretch;
	height: auto;
	min-height: 100%;
	box-sizing: border-box;
}

.b16-profile__avatar-wrap {
	position: relative;
	width: 118px;
	height: 118px;
	margin-bottom: 14px;
}

.b16-profile__avatar-inner {
	width: 118px;
	height: 118px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid #0e0e12;
	background: #252830;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.b16-profile__avatar-inner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.b16-profile__avatar-wrap .avatar_frame_overlay {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% + 18px);
	height: calc(100% + 18px);
	pointer-events: none;
	z-index: 2;
}

.b16-profile__name {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--b16-prof-name);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	word-break: break-word;
}

.b16-profile__name[style*="background-clip"],
.b16-profile__name[style*="text-fill-color"],
.login_visit[style*="background-clip"],
.login_visit[style*="text-fill-color"],
.gp_visit[style*="background-clip"],
.gp_visit[style*="text-fill-color"],
.desp_user[style*="background-clip"],
.author[style*="background-clip"],
.group_name[style*="background-clip"],
.b16-profile__stat-value[style*="background-clip"] {
	display: inline-block;
	max-width: 100%;
}

.b16-profile__name .nick-gradient {
	font-weight: 800;
	display: inline-block;
}

.b16-profile__status {
	display: inline-block;
	max-width: 100%;
	margin-bottom: 10px;
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.55);
	font-size: 12px;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

a.b16-profile__status:hover {
	color: rgba(255, 255, 255, 0.85);
	border-color: rgba(255, 255, 255, 0.2);
	text-decoration: none;
}

.b16-profile__online {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 14px;
}

.b16-profile__online-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4ade80;
	box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.b16-profile__online-dot.is-offline {
	background: #6b7280;
	box-shadow: none;
}

.b16-profile__id-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	width: 100%;
}

.b16-profile__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease;
}

.b16-profile__action:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	text-decoration: none;
}

.b16-profile__action--primary {
	background: rgba(124, 92, 255, 0.18);
	border-color: rgba(124, 92, 255, 0.4);
	color: #c4b5fd;
}

.b16-profile__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.b16-profile__stat {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 0;
	padding: 8px 10px;
	background: var(--b16-prof-panel);
	border: 1px solid var(--b16-prof-line);
	border-radius: 10px;
}

.b16-profile__stat--wide {
	grid-column: 1 / -1;
}

.b16-profile__stat-icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.72);
	font-size: 16px;
}

.b16-profile__stat-icon--gold {
	color: #f0a04b;
	background: rgba(240, 160, 75, 0.1);
	border-color: rgba(240, 160, 75, 0.22);
}

.b16-profile__stat-text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.b16-profile__stat-label {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.4);
	line-height: 1.15;
}

.b16-profile__stat-value {
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
	word-break: break-word;
}

.b16-profile__stat-value--accent {
	color: var(--b16-prof-name);
}

.b16-profile__card {
	background: var(--b16-prof-panel);
	border: 1px solid var(--b16-prof-line);
	border-radius: 12px;
	padding: 12px;
	min-height: 100%;
}

.b16-profile__card-head {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
}

.b16-profile__card-head > i {
	font-size: 18px;
	color: var(--b16-prof-name);
	margin-top: 2px;
}

.b16-profile__card-title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

.b16-profile__card-sub {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.4);
	line-height: 1.3;
}

.b16-profile__servers {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.b16-profile__server {
	display: flex;
	align-items: stretch;
	gap: 8px;
	padding: 10px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--b16-prof-line);
}

.b16-profile__server-main {
	flex: 1;
	min-width: 0;
}

.b16-profile__server-name {
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 6px;
	display: block;
}

.b16-profile__server-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	font-size: 12px;
}

.b16-profile__server-map {
	color: rgba(255, 255, 255, 0.45);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.b16-profile__server-online {
	color: #a78bfa;
	font-weight: 700;
	flex-shrink: 0;
}

.b16-profile__server-bar {
	height: 5px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
	margin-bottom: 8px;
}

.b16-profile__server-bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #5b43d6, #7c5cff);
}

.b16-profile__server-addr {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.5);
}

.b16-profile__server-actions {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
}

.b16-profile__server-btn {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.75);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
	padding: 0;
}

.b16-profile__server-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	text-decoration: none;
}

.b16-profile__friends-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}

.b16-profile__section-title {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 700;
}

.b16-profile__admin-bar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 8px;
}

.b16-profile .empty-element {
	color: rgba(255, 255, 255, 0.45);
}

.b16-profile #comments {
	margin-top: 0;
}

.b16-profile__banner--default {
	height: 120px;
	background:
		linear-gradient(135deg, rgba(124, 92, 255, 0.16) 0%, rgba(26, 21, 32, 0.95) 55%),
		#1a1520;
}

@media (max-width: 1199.98px) {
	.b16-profile__shell {
		grid-template-columns: 200px minmax(0, 1fr);
	}

	.b16-profile__banner {
		height: 280px;
	}

	.b16-profile__banner--default {
		height: 96px;
	}

	.b16-profile__info-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767.98px) {
	.b16-profile__shell {
		grid-template-columns: 1fr;
		padding: 14px;
	}

	.b16-profile__banner {
		height: 200px;
	}

	.b16-profile__banner--default {
		height: 48px;
	}

	.b16-profile__banner--default::after {
		display: none;
	}

	.b16-profile__banner-cta {
		font-size: 11px;
		padding: 6px 10px;
	}

	.b16-profile__stats {
		grid-template-columns: 1fr;
	}

	.b16-profile__visitor-actions {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 2px;
	}

	.b16-profile__tabs {
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
	}

	.b16-profile__tab {
		flex: 0 0 auto;
		padding: 12px 14px;
		white-space: nowrap;
	}
}
