/* Profile page — WatchHub */

.profile-page {
	max-width: 960px;
	margin: 0 auto;
	width: 100%;
}

.profile-hero {
	background: var(--bg-black);
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 16px;
	position: relative;
}

.profile-hero__cover {
	position: relative;
	height: 200px;
	background: linear-gradient(135deg, #26312f 0%, #191919 45%, rgba(178, 222, 67, 0.15) 100%);
	background-size: cover;
	background-position: center;
}

.profile-hero__cover-actions {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: flex;
	gap: 8px;
	z-index: 3;
}

.profile-hero__cover-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 12px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: background 0.2s ease;
}

.profile-hero__cover-btn:hover {
	background: rgba(0, 0, 0, 0.72);
}

.profile-hero__cover-btn input {
	display: none;
}

.profile-hero__body {
	display: flex;
	gap: 16px;
	padding: 0 20px 20px;
	margin-top: -44px;
	position: relative;
	z-index: 1;
	align-items: flex-end;
}

.profile-hero__avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	border: 4px solid var(--bg-black);
	overflow: hidden;
	flex-shrink: 0;
	background: var(--bg-darker);
}

.profile-hero__avatar--editable {
	position: relative;
	cursor: pointer;
}

.profile-hero__avatar--editable.is-uploading {
	pointer-events: none;
	opacity: 0.72;
}

.profile-hero__avatar-actions {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.profile-hero__avatar--editable:hover .profile-hero__avatar-actions,
.profile-hero__avatar--editable:focus-within .profile-hero__avatar-actions {
	opacity: 1;
}

.profile-hero__avatar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-width: 34px;
	max-width: 34px;
	flex: 0 0 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	box-sizing: border-box;
	transition: background 0.2s ease, color 0.2s ease;
}

button.profile-hero__avatar-btn {
	line-height: 1;
}

.profile-hero__avatar-btn:hover {
	background: var(--accent);
	color: var(--bg-black);
}

.profile-hero__avatar-btn input {
	display: none;
}

.profile-hero__avatar-btn--remove:hover {
	background: var(--ui-red, #eb4d4b);
	color: #fff;
}

@media (hover: none) {
	.profile-hero__avatar-actions {
		opacity: 1;
		align-items: flex-end;
		justify-content: flex-end;
		padding: 4px;
		background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 70%);
	}

	.profile-hero__avatar-btn {
		width: 28px;
		height: 28px;
		min-width: 28px;
		max-width: 28px;
		flex-basis: 28px;
		font-size: 12px;
	}
}

.profile-hero__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.profile-hero__meta {
	flex: 1;
	min-width: 0;
	padding-bottom: 4px;
}

.profile-hero__name {
	font-size: 22px;
	font-weight: 700;
	color: var(--tt);
	line-height: 1.2;
	margin-bottom: 6px;
}

.profile-hero__status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 4px 10px;
	border-radius: 20px;
	background: var(--bg-darker);
	color: var(--tt-fade);
}

.profile-hero__status.is-online {
	background: rgba(178, 222, 67, 0.15);
	color: var(--accent);
}

.profile-hero__status.is-online::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}

.profile-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.profile-hero__actions a {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 14px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border: 1px solid var(--bdc);
	color: var(--tt);
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.profile-hero__actions .profile-hero__cover-btn {
	border: 1px solid var(--bdc);
	background: var(--bg-darker);
	color: var(--tt);
	backdrop-filter: none;
}

.profile-hero__actions .profile-hero__cover-btn:hover {
	border-color: var(--accent);
	color: var(--accent);
	background: var(--bg-darker);
}

.profile-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 16px;
}

.profile-stats .profile-admin-tools {
	grid-column: 1 / -1;
}

.profile-stat {
	background: var(--bg-black);
	border-radius: 10px;
	padding: 14px 16px;
	text-align: center;
}

.profile-stat__value {
	display: block;
	font-size: 20px;
	font-weight: 700;
	color: var(--tt);
	line-height: 1.2;
}

.profile-stat__label {
	display: block;
	font-size: 12px;
	color: var(--tt-fade);
	margin-top: 2px;
}

.profile-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.profile-sidebar {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.profile-card {
	background: var(--bg-black);
	border-radius: 10px;
	padding: 16px;
}

.profile-card__title {
	font-size: 13px;
	font-weight: 600;
	color: var(--tt-fade);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 12px;
}

.profile-info-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.profile-info-list li {
	font-size: 13px;
	line-height: 1.4;
	color: var(--tt);
}

.profile-info-list li span {
	display: block;
	font-size: 11px;
	color: var(--tt-fade);
	margin-bottom: 2px;
}

.profile-info-list a {
	color: var(--accent);
}

.profile-main {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.profile-tabs {
	display: flex;
	gap: 4px;
	background: var(--bg-black);
	border-radius: 10px;
	padding: 4px;
}

.profile-tabs__btn {
	flex: 1;
	height: 36px;
	border-radius: 8px;
	background: none;
	color: var(--tt-fade);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.profile-tabs__btn.is-active {
	background: var(--bg);
	color: var(--accent);
}

.profile-tabs__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	margin-left: 6px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--accent);
	color: #1a1a1a;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	vertical-align: middle;
}

#profileTabWall,
#profileTabPublications {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

#profileTabWall[hidden],
#profileTabPublications[hidden] {
	display: none !important;
}

.profile-compose {
	background: var(--bg-black);
	border-radius: 10px;
	padding: 16px;
}

.profile-compose__banned-notice {
	display: none;
	margin-bottom: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(235, 77, 75, 0.12);
	color: var(--ui-red, #eb4d4b);
	font-size: 13px;
}

.profile-compose.is-banned .profile-compose__banned-notice {
	display: block;
}

.profile-compose__textarea {
	width: 100%;
	min-height: 80px;
	resize: vertical;
	background: #222222;
	border: 1px solid #292929;
	border-radius: 8px;
	padding: 12px;
	color: var(--tt);
	font-size: 14px;
	line-height: 1.45;
}

.profile-compose__textarea:focus {
	border-color: var(--accent);
}

.profile-compose__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.profile-compose__attach {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--tt-fade);
	cursor: pointer;
}

.profile-compose__attach input {
	display: none;
}

.profile-compose__preview {
	margin-top: 10px;
	display: none;
	position: relative;
	max-width: 280px;
}

.profile-compose__preview.is-visible {
	display: block;
}

.profile-compose__preview img {
	width: 100%;
	border-radius: 8px;
	display: block;
}

.profile-compose__preview-remove {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	cursor: pointer;
	font-size: 14px;
}

.profile-wall {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.profile-wall__empty {
	background: var(--bg-black);
	border-radius: 10px;
	padding: 32px 20px;
	text-align: center;
	color: var(--tt-fade);
	font-size: 14px;
}

.profile-publications {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.profile-publications__head {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.profile-publications__summary {
	margin: 0;
	color: var(--tt-fade);
	font-size: 14px;
}

.profile-publications__summary--empty {
	padding-top: 4px;
}

.profile-publications__links a {
	color: var(--accent);
	font-size: 14px;
	text-decoration: none;
}

.profile-publications__links a:hover {
	text-decoration: underline;
}

.profile-card__title--sub {
	margin-bottom: 12px;
	font-size: 15px;
}

.profile-publications__empty {
	background: var(--bg-black);
	border-radius: 10px;
	padding: 28px 20px;
	text-align: center;
	color: var(--tt-fade);
	font-size: 14px;
}

.profile-publications__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.profile-publication {
	position: relative;
	background: var(--bg);
	border: 1px solid var(--bdc);
	border-radius: 10px;
	padding: 14px;
}

.profile-publication__badge {
	display: inline-flex;
	align-items: center;
	margin-bottom: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 193, 7, 0.14);
	color: #ffc107;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.profile-publication__inner {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.profile-publication__media {
	flex: 0 0 96px;
	width: 96px;
	height: 72px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--bg-black);
	display: block;
}

.profile-publication__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.profile-publication__media:not(:has(img[src]:not([src=""]))) {
	display: flex;
	align-items: center;
	justify-content: center;
}

.profile-publication__media:not(:has(img[src]:not([src=""])))::before {
	content: "\f03e";
	font-family: "Font Awesome 5 Pro";
	font-weight: 300;
	font-size: 22px;
	color: var(--tt-fade);
	opacity: 0.45;
}

.profile-publication__media img[src=""],
.profile-publication__media img:not([src]) {
	display: none;
}

.profile-publication__body {
	flex: 1;
	min-width: 0;
}

.profile-publication__title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.profile-publication__title a {
	color: var(--tt);
	text-decoration: none;
}

.profile-publication__title a:hover {
	color: var(--accent);
}

.profile-publication__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	color: var(--tt-fade);
	font-size: 12px;
}

.profile-publication__actions {
	margin-top: 10px;
}

.profile-publication__actions a {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--accent);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.profile-publication__actions a:hover {
	background: rgba(178, 222, 67, 0.12);
}

.profile-page ~ .profile-publication,
.profile-page ~ .item.item-poster {
	display: none;
}

#profilePublicationsList .profile-publication {
	display: block;
}

.profile-post {
	background: var(--bg-black);
	border-radius: 10px;
	padding: 16px;
}

.profile-post__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.profile-post__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--bg-darker);
}

.profile-post__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.profile-post__head-meta {
	flex: 1;
	min-width: 0;
}

.profile-post__author {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--tt);
	text-decoration: none;
}

.profile-post__author:hover {
	color: var(--accent);
}

.profile-post__date {
	display: block;
	font-size: 12px;
	color: var(--tt-fade);
	margin-top: 2px;
}

.profile-post__edited {
	color: var(--tt-fade);
	font-size: 11px;
}

.profile-post__admin-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.profile-post__action {
	background: none;
	color: var(--tt-fade);
	font-size: 12px;
	cursor: pointer;
	padding: 0;
	height: auto;
}

.profile-post__action:hover {
	color: var(--accent);
}

.profile-post__action--danger:hover {
	color: var(--ui-red, #eb4d4b);
}

.profile-post__social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--bdc);
}

.profile-post__like,
.profile-post__comments-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 12px;
	border-radius: 8px;
	background: var(--bg-darker);
	color: var(--tt-fade);
	font-size: 13px;
	cursor: pointer;
	border: 1px solid transparent;
}

.profile-post__like.is-active {
	color: #f87171;
	border-color: rgba(248, 113, 113, 0.3);
	background: rgba(248, 113, 113, 0.08);
}

.profile-post__like:hover,
.profile-post__comments-toggle:hover {
	border-color: var(--bdc);
	color: var(--tt);
}

.profile-post__reactions-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	position: relative;
}

.profile-post__reactions-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.profile-post__reaction-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--bg-darker);
	border: 1px dashed var(--bdc);
	color: var(--tt-fade);
	font-size: 14px;
	cursor: pointer;
	flex-shrink: 0;
}

.profile-post__reaction-add:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.profile-reactions-popup {
	position: fixed;
	z-index: 10100;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 8px;
	border-radius: 12px;
	background: var(--ui-bdc);
	border: 1px solid var(--bdc);
	max-width: calc(100vw - 16px);
}

.profile-reactions-popup[hidden] {
	display: none !important;
}

.profile-reactions-popup__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: var(--bg-darker);
	border: 1px solid transparent;
	cursor: pointer;
	font-size: 18px;
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.profile-reactions-popup__item:hover {
	transform: scale(1.12);
}

.profile-reactions-popup__item.is-active {
	border-color: rgba(178, 222, 67, 0.5);
	background: rgba(178, 222, 67, 0.12);
}

.profile-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.profile-modal[hidden] {
	display: none !important;
}

.profile-modal.is-open {
	display: flex;
}

body.profile-modal-open {
	overflow: hidden;
	touch-action: none;
	overscroll-behavior: none;
}

html.profile-modal-open {
	overflow: hidden;
	height: 100%;
}

.profile-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(2px);
}

.profile-modal__dialog {
	position: relative;
	width: min(960px, 100%);
	max-height: min(88vh, 760px);
	background: var(--bg-black);
	border: 1px solid var(--bdc);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.profile-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: var(--bg-darker);
	border: 1px solid var(--bdc);
	color: var(--tt-fade);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.profile-modal__close:hover {
	color: var(--tt);
	border-color: var(--accent);
}

.profile-modal__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 420px;
	max-height: min(88vh, 760px);
}

.profile-modal__post {
	padding: 20px;
	overflow-y: auto;
	border-right: 1px solid var(--bdc);
	background: var(--bg-darker);
}

.profile-modal__post .profile-post__header {
	margin-bottom: 14px;
}

.profile-modal__post .profile-post__text {
	font-size: 15px;
}

.profile-modal__post .profile-post__image {
	margin-top: 14px;
}

.profile-modal__post .profile-post__image img {
	max-height: 360px;
}

.profile-modal__post .profile-post__social {
	margin-top: 16px;
}

.profile-modal__comments {
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 20px;
}

.profile-modal__comments-head {
	font-size: 16px;
	font-weight: 600;
	color: var(--tt);
	margin-bottom: 14px;
	padding-right: 36px;
}

.profile-modal__comments-compose {
	flex-shrink: 0;
	margin-bottom: 14px;
}

.profile-comment-compose {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 4px;
	padding: 4px;
	border: 1px solid #292929;
	border-radius: 12px;
	background: #222222;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-comment-compose:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 2px rgba(178, 222, 67, 0.12);
}

.profile-comment-compose__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 36px;
	padding: 0 10px;
	border: 0;
	border-radius: 8px;
	background: #222222;
	color: var(--tt);
	font-size: 13px;
}

.profile-comment-compose__input:focus {
	outline: none;
}

.profile-comment-compose__send {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border: 0;
	border-radius: 8px;
	background: var(--accent);
	color: var(--bg-black);
	font-size: 15px;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: filter 0.2s;
}

.profile-comment-compose__send:hover {
	filter: brightness(1.08);
}

.profile-modal__comments-list {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-right: 4px;
}

.profile-modal__comments-empty {
	font-size: 13px;
	color: var(--tt-fade);
	text-align: center;
	padding: 24px 12px;
}

.profile-toasts {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 1400;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
	max-width: min(360px, calc(100vw - 32px));
}

.profile-toast {
	padding: 12px 16px;
	border-radius: 10px;
	background: var(--bg-black);
	border: 1px solid var(--bdc);
	color: var(--tt);
	font-size: 13px;
	line-height: 1.4;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: auto;
}

.profile-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.profile-toast--error {
	border-color: rgba(235, 77, 75, 0.45);
	color: #ffb4b2;
}

.profile-toast--success {
	border-color: rgba(178, 222, 67, 0.45);
}

.profile-alert {
	position: fixed;
	inset: 0;
	z-index: 10150;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.profile-alert[hidden] {
	display: none !important;
}

.profile-alert.is-open {
	display: flex;
}

.profile-alert__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(2px);
}

.profile-alert__box {
	position: relative;
	width: min(420px, 100%);
	padding: 22px;
	border-radius: 14px;
	background: var(--bg-black);
	border: 1px solid var(--bdc);
	box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5);
}

.profile-alert__title {
	font-size: 17px;
	font-weight: 600;
	color: var(--tt);
	margin-bottom: 8px;
}

.profile-alert__text {
	font-size: 14px;
	line-height: 1.5;
	color: var(--tt-fade);
	margin-bottom: 18px;
}

.profile-alert__text:empty {
	display: none;
	margin-bottom: 0;
}

.profile-alert__field {
	margin-bottom: 18px;
}

.profile-alert__input {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid var(--bdc);
	background: var(--bg-darker);
	color: var(--tt);
	font-size: 14px;
}

.profile-alert__input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 2px rgba(178, 222, 67, 0.12);
}

.profile-alert__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.profile-alert__btn {
	height: 36px;
	padding: 0 16px;
	border-radius: 8px;
	font-size: 13px;
	cursor: pointer;
	border: 1px solid var(--bdc);
	background: var(--bg-darker);
	color: var(--tt-fade);
	transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.profile-alert__btn:hover {
	color: var(--tt);
	border-color: var(--tt-fade);
}

.profile-alert__btn--confirm {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--bg-black);
	font-weight: 600;
}

.profile-alert__btn--confirm:hover {
	filter: brightness(1.08);
	color: var(--bg-black);
}

.profile-alert__btn--confirm.profile-alert__btn--danger {
	background: transparent;
	border-color: var(--ui-red, #eb4d4b);
	color: var(--ui-red, #eb4d4b);
}

.profile-alert__btn--confirm.profile-alert__btn--danger:hover {
	background: rgba(235, 77, 75, 0.12);
}

.profile-post__comments {
	display: none;
}

.profile-post__reaction {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 32px;
	padding: 0 8px;
	border-radius: 8px;
	background: var(--bg-darker);
	border: 1px solid transparent;
	cursor: pointer;
	font-size: 14px;
}

.profile-post__reaction.is-active {
	border-color: rgba(178, 222, 67, 0.4);
	background: rgba(178, 222, 67, 0.1);
}

.profile-post__reaction-count {
	font-size: 11px;
	color: var(--tt-fade);
}

.profile-post__comments {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--bdc);
}

.profile-post__comments-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 12px;
}

.profile-post__comments-empty {
	font-size: 13px;
	color: var(--tt-fade);
	text-align: center;
	padding: 8px;
}

.profile-post__comment-compose {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.profile-post__comment-input {
	width: 100%;
	min-height: 56px;
	resize: vertical;
	background: var(--bg-darker);
	border: 1px solid var(--bdc);
	border-radius: 8px;
	padding: 10px 12px;
	color: var(--tt);
	font-size: 13px;
}

.profile-post__comment-input:focus {
	border-color: var(--accent);
}

.profile-post__edit-input,
.profile-comment__edit-input {
	width: 100%;
	background: var(--bg-darker);
	border: 1px solid var(--bdc);
	border-radius: 8px;
	padding: 10px 12px;
	color: var(--tt);
	font-size: 14px;
	resize: vertical;
}

.profile-post__edit-actions,
.profile-comment__edit-actions {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.profile-comment {
	display: flex;
	gap: 10px;
}

.profile-comment__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--bg-darker);
}

.profile-comment__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.profile-comment__body {
	flex: 1;
	min-width: 0;
	background: var(--bg-darker);
	border-radius: 8px;
	padding: 10px 12px;
}

.profile-comment__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
}

.profile-comment__author {
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
}

.profile-comment__date {
	font-size: 11px;
	color: var(--tt-fade);
}

.profile-comment__edited {
	font-size: 11px;
	color: var(--tt-fade);
}

.profile-comment__text {
	font-size: 13px;
	line-height: 1.45;
	color: var(--tt);
	white-space: pre-wrap;
	word-break: break-word;
}

.profile-comment__actions {
	display: flex;
	gap: 10px;
	margin-top: 6px;
}

.profile-comment__action {
	background: none;
	color: var(--tt-fade);
	font-size: 11px;
	padding: 0;
	height: auto;
	cursor: pointer;
}

.profile-comment__action:hover {
	color: var(--accent);
}

.profile-comment__mention {
	color: var(--accent);
	text-decoration: none;
}

.profile-comment__mention:hover {
	text-decoration: underline;
}

.profile-comment__action--danger:hover {
	color: var(--ui-red, #eb4d4b);
}

.profile-admin-tools {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.profile-admin-tools__btn {
	height: 34px;
	padding: 0 14px;
	border-radius: 8px;
	font-size: 12px;
	cursor: pointer;
	border: 1px solid var(--bdc);
	background: var(--bg-black);
	color: var(--tt-fade);
}

.profile-admin-tools__btn--ban:hover {
	border-color: var(--ui-red, #eb4d4b);
	color: var(--ui-red, #eb4d4b);
}

.profile-admin-tools__btn--unban:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.profile-post__text {
	font-size: 14px;
	line-height: 1.55;
	color: var(--tt);
	white-space: pre-wrap;
	word-break: break-word;
}

.profile-post__text:empty {
	display: none;
}

.profile-post__image {
	margin-top: 12px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--bg-darker);
}

.profile-post__image img {
	width: 100%;
	display: block;
	max-height: 480px;
	object-fit: contain;
	background: var(--bg-darker);
}

.profile-post__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--bdc);
}

.profile-post__date {
	font-size: 12px;
	color: var(--tt-fade);
}

.profile-post__delete {
	background: none;
	color: var(--tt-fade);
	font-size: 12px;
	cursor: pointer;
	padding: 0;
	height: auto;
}

.profile-post__delete:hover {
	color: var(--ui-red, #eb4d4b);
}

.profile-wall__loader,
.profile-wall__more {
	text-align: center;
	padding: 12px;
	color: var(--tt-fade);
	font-size: 13px;
}

.profile-wall__sentinel {
	height: 1px;
}

.profile-edit-toggle {
	width: 100%;
	margin-top: 4px;
}

.profile-edit-panel {
	margin-top: 0;
}

.profile-edit-panel .serv__title {
	display: none;
}

.profile-edit-modal__dialog {
	width: min(720px, 100%);
	max-height: min(90vh, 820px);
}

.profile-edit-modal__head {
	padding: 18px 52px 14px 20px;
	font-size: 18px;
	font-weight: 600;
	border-bottom: 1px solid var(--bdc);
	flex-shrink: 0;
}

.profile-edit-modal__body {
	flex: 0 1 auto;
	min-height: 0;
	max-height: calc(min(90vh, 820px) - 130px);
	overflow-y: auto;
	padding: 16px 20px;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.profile-edit-modal__footer {
	flex-shrink: 0;
	padding: 14px 20px 20px;
	border-top: 1px solid var(--bdc);
	background: var(--bg-black);
}

.profile-edit-modal__submit {
	margin: 0;
	padding: 0;
	background: none;
}

.profile-edit-panel .serv__section:last-of-type {
	margin-bottom: 0;
}

.profile-modal__post,
.profile-modal__comments-list,
.profile-edit-modal__body,
.profile-edit-modal__body textarea {
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.06);
}

.profile-modal__post::-webkit-scrollbar,
.profile-modal__comments-list::-webkit-scrollbar,
.profile-edit-modal__body::-webkit-scrollbar,
.profile-edit-modal__body textarea::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

.profile-modal__post::-webkit-scrollbar-track,
.profile-modal__comments-list::-webkit-scrollbar-track,
.profile-edit-modal__body::-webkit-scrollbar-track,
.profile-edit-modal__body textarea::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.04);
	border-radius: 999px;
}

.profile-modal__post::-webkit-scrollbar-thumb,
.profile-modal__comments-list::-webkit-scrollbar-thumb,
.profile-edit-modal__body::-webkit-scrollbar-thumb,
.profile-edit-modal__body textarea::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.04);
}

.profile-modal__post::-webkit-scrollbar-thumb:hover,
.profile-modal__comments-list::-webkit-scrollbar-thumb:hover,
.profile-edit-modal__body::-webkit-scrollbar-thumb:hover,
.profile-edit-modal__body textarea::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.32);
}

.profile-modal__post::-webkit-scrollbar-button,
.profile-modal__comments-list::-webkit-scrollbar-button,
.profile-edit-modal__body::-webkit-scrollbar-button,
.profile-edit-modal__body textarea::-webkit-scrollbar-button,
.profile-modal__post::-webkit-scrollbar-corner,
.profile-modal__comments-list::-webkit-scrollbar-corner,
.profile-edit-modal__body::-webkit-scrollbar-corner,
.profile-edit-modal__body textarea::-webkit-scrollbar-corner {
	display: none;
	width: 0;
	height: 0;
}

.profile-edit-panel .form__row label {
	color: var(--tt-fade);
	font-size: 12px;
	margin-bottom: 6px;
	display: block;
}

@media (max-width: 860px) {
	.profile-publication__inner {
		flex-direction: column;
	}

	.profile-publication__media {
		width: 100%;
		height: 140px;
		flex-basis: auto;
	}

	.profile-layout {
		grid-template-columns: 1fr;
	}

	.profile-sidebar {
		order: 2;
	}

	.profile-main {
		order: 1;
	}

	.profile-stats {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 560px) {
	.profile-hero__cover {
		height: 140px;
	}

	.profile-hero__body {
		flex-direction: column;
		align-items: flex-start;
		margin-top: -36px;
		padding: 0 14px 16px;
	}

	.profile-hero__avatar {
		width: 72px;
		height: 72px;
	}

	.profile-hero__name {
		font-size: 18px;
	}

	.profile-stats {
		grid-template-columns: 1fr 1fr 1fr;
		gap: 8px;
	}

	.profile-stat {
		padding: 10px 8px;
	}

	.profile-stat__value {
		font-size: 16px;
	}
}

@media (max-width: 1219px) {
	.profile-modal {
		padding: 0;
		align-items: stretch;
		justify-content: stretch;
	}

	.profile-modal__dialog {
		width: 100%;
		height: 100%;
		max-height: none;
		border-radius: 0;
		border: 0;
		box-shadow: none;
	}

	.profile-modal__body {
		grid-template-columns: 1fr;
		grid-template-rows: auto minmax(0, 1fr);
		min-height: 0;
		flex: 1;
		max-height: none;
		height: 100%;
	}

	.profile-modal__post {
		border-right: none;
		border-bottom: 1px solid var(--bdc);
		max-height: min(38vh, 300px);
		flex-shrink: 0;
	}

	.profile-modal__comments {
		flex: 1;
		min-height: 0;
		max-height: none;
		overflow: hidden;
		padding-bottom: env(safe-area-inset-bottom, 0);
	}

	.profile-modal__comments-list {
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}

	.profile-modal__close {
		top: calc(10px + env(safe-area-inset-top, 0));
	}

	.profile-edit-modal__body {
		flex: 1 1 auto;
		max-height: none;
	}

	.profile-edit-modal__footer {
		padding-bottom: calc(20px + env(safe-area-inset-bottom, 0));
	}

	.profile-edit-modal__head {
		padding-top: calc(18px + env(safe-area-inset-top, 0));
	}

	body.profile-modal-open .site-chat__fab {
		display: none !important;
	}

	body.profile-modal-open .header,
	body.profile-modal-open .mobile-rail {
		display: none !important;
	}

	.profile-toasts {
		bottom: calc(72px + env(safe-area-inset-bottom, 0));
	}
}
