/* ===== Профиль: Сайдбар ===== */

.profile_sidebar {
	flex: 0 0 310px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 15px 15px;
}

.profile_avatar {
	width: 120px;
	height: 120px;
	object-fit: cover;
	clip-path: polygon(0px calc(100% - 8px), 4px calc(100% - 8px), 4px calc(100% - 4px), 8px calc(100% - 4px), 8px 100%, calc(100% - 8px) 100%, calc(100% - 8px) calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) calc(100% - 8px), 100% calc(100% - 8px), 100% 8px, calc(100% - 4px) 8px, calc(100% - 4px) 4px, calc(100% - 8px) 4px, calc(100% - 8px) 0px, 8px 0px, 8px 4px, 4px 4px, 4px 8px, 0px 8px);
	margin-bottom: 10px;
}

.profile_info {
	text-align: center;
	margin-bottom: 12px;
}

.profile_name {
	font-family: "Pixy", sans-serif;
	font-size: 22px;
	text-transform: uppercase;
	color: var(--text);
	margin: 0 0 5px 0;
}

.profile_username {
	font-size: 14px;
	color: var(--hoverColor);
	margin: 0;
}

/* ===== Профиль: Статистика ===== */

.profile_stats {
	width: 100%;
	margin-bottom: 20px;
}

.profile_stat_row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 12px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile_stat_row:last-child {
	border-bottom: none;
}

.profile_stat_label {
	font-size: 14px;
	color: var(--text);
	opacity: 0.5;
	flex-shrink: 0;
	margin-right: 15px;
}

.profile_stat_value {
	font-size: 14px;
	color: var(--text);
	text-align: right;
	white-space: nowrap;
}

/* ===== Профиль: Кнопка выхода ===== */

.profile_admin_btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 8px 0;
	margin-top: 10px;
	background: rgba(255, 170, 0, 0.15);
	color: #ffaa00;
	text-decoration: none;
	font-family: "Pixy", sans-serif;
	font-size: 16px;
	text-transform: uppercase;
	transition: background .2s;
}

.profile_admin_btn:hover {
	background: rgba(255, 170, 0, 0.3);
}

:root.whrite-theme .profile_admin_btn {
	background: rgba(230, 138, 0, 0.15);
	color: #cc7a00;
}
:root.whrite-theme .profile_admin_btn:hover {
	background: rgba(230, 138, 0, 0.25);
}

.profile_logout_btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 8px 0;
	margin-top: 10px;
	background: rgba(255, 77, 77, 0.15);
	color: #ff4d4d;
	text-decoration: none;
	font-family: "Pixy", sans-serif;
	font-size: 16px;
	text-transform: uppercase;
	transition: background .2s;
}

.profile_logout_btn:hover {
	background: rgba(255, 77, 77, 0.3);
}

:root.whrite-theme .profile_logout_btn {
	background: rgba(230, 0, 0, 0.15);
	color: #cc0000;
}
:root.whrite-theme .profile_logout_btn:hover {
	background: rgba(230, 0, 0, 0.25);
}

.profile_back_btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 8px 0;
	margin-top: 10px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--text);
	opacity: 0.7;
	text-decoration: none;
	font-family: "Pixy", sans-serif;
	font-size: 16px;
	text-transform: uppercase;
	transition: background .2s, opacity .2s;
	border: none;
	cursor: pointer;
}

.profile_back_btn:hover {
	background: rgba(255, 255, 255, 0.15);
	opacity: 1;
}

:root.whrite-theme .profile_back_btn {
	background: rgba(0, 0, 0, 0.05);
	opacity: 0.9;
}

:root.whrite-theme .profile_back_btn:hover {
	background: rgba(0, 0, 0, 0.15);
	opacity: 1;
}

/* ===== Привязка аккаунта ===== */

#getLinkCodeBtn {
	background: var(--text);
	color: var(--text2);
	border: none;
	width: 100%;
	cursor: pointer;
	font-family: "Pixy", sans-serif;
	font-size: 16px;
	text-transform: uppercase;
	padding: 8px 15px;
	transition: background-color 0.2s, color 0.2s;
}

#getLinkCodeBtn:hover {
	background-color: var(--hoverColor);
	color: var(--text);
}

.profile_unlink_btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 8px 0;
	background: rgba(255, 170, 0, 0.15);
	color: #ffaa00;
	border: none;
	cursor: pointer;
	font-family: "Pixy", sans-serif;
	font-size: 15px;
	text-transform: uppercase;
	transition: background-color 0.2s, color 0.2s;
}

.profile_unlink_btn:hover {
	background-color: rgba(255, 170, 0, 0.3);
}

:root.whrite-theme .profile_unlink_btn {
	background: rgba(230, 138, 0, 0.15);
	color: #cc7a00;
}

:root.whrite-theme .profile_unlink_btn:hover {
	background-color: rgba(230, 138, 0, 0.25);
}

.link_code_card {
	background: var(--colorBlock1);
	padding: 10px 12px;
	margin-top: 10px;
	text-align: center;
}

.link_code_label {
	font-size: 11px;
	color: var(--text);
	opacity: 0.6;
	margin-bottom: 3px;
}

.link_code_value {
	font-family: "Pixy", sans-serif;
	font-size: 22px;
	letter-spacing: 3px;
	color: var(--hoverColor);
	line-height: 1.1;
	margin-bottom: 5px;
}

.link_code_command {
	font-size: 12px;
	color: var(--text);
	background: var(--colorBg);
	padding: 4px 8px;
	display: inline-block;
	user-select: all;
	letter-spacing: 0.5px;
}

/* ===== Профиль: Основной контент ===== */

.profile_content {
	flex: 1;
	min-height: 400px;
}

.profile_content_placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
	color: var(--text);
	opacity: 0.3;
	font-size: 16px;
}

/* ===== Профиль: Форма авторизации ===== */

.profile_login_box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 20px;
}

.profile_login_desc {
	color: var(--text);
	opacity: 0.5;
	font-size: 16px;
	margin-bottom: 30px;
}

.tg_custom_btn {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 20px;
}

/* ===== Кастомная кнопка Telegram ===== */
.profile_tg_widget_wrapper {
	position: relative;
	display: inline-flex;
	margin-top: 20px;
	justify-content: center;
	align-items: center;
}

.custom_tg_btn {
	background: var(--text);
	color: var(--text2);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 5px 50px;
	min-height: 40px;
	font-family: "Pixy", sans-serif;
	font-size: 20px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, transform 0.1s;
	z-index: 1;
}

.profile_tg_widget_wrapper:hover .custom_tg_btn {
	background-color: var(--hoverColor);
	color: var(--text);
}

.profile_tg_widget_wrapper:active .custom_tg_btn {
	transform: scale(0.98);
}


.tg_widget_overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	opacity: 0.01;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.tg_widget_overlay iframe {
	transform: scale(1.5);
	transform-origin: center;
	cursor: pointer;
}

/* ===== Адаптив ===== */

@media screen and (max-width: 1100px) {
	.section_flex {
		flex-direction: column !important;
	}

	.profile_sidebar {
		flex: none !important;
		width: 100% !important;
	}

	.profile_content {
		flex: none !important;
		width: 100% !important;
	}
}

/* ===== Форма изменения статуса ===== */
.profile_status_input {
	flex: 1;
	min-width: 0;
	padding: 6px 10px;
	background: var(--colorBlock1);
	color: var(--text);
	border: none;
	outline: none;
	font-family: "Vrc", sans-serif;
	font-size: 13px;
	transition: background-color 0.2s;
}

.profile_status_input:focus {
	background: var(--colorBg);
}

.profile_edit_btn {
	background: rgba(255, 255, 255, 0.05);
	color: var(--text);
	opacity: 0.7;
	border: none;
	cursor: pointer;
	font-family: "Pixy", sans-serif;
	font-size: 11px;
	text-transform: uppercase;
	padding: 6px 12px;
	transition: background-color 0.2s, opacity 0.2s, color 0.2s;
}

.profile_edit_btn:hover {
	background-color: var(--hoverColor);
	color: #fff;
	opacity: 1;
}

:root.whrite-theme .profile_edit_btn {
	background: rgba(0, 0, 0, 0.05);
}

/* Pixel Button (Minecraft style bracket border) */
.pixel-btn {
	position: relative;
	background: transparent;
	border: none;
	color: var(--text);
	padding: 6px 12px;
	font-size: 11px;
	font-family: "Pixy", sans-serif;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	text-align: center;
}

.pixel-btn::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 2px;
	right: 2px;
	border-top: 1px solid #777;
	border-bottom: 1px solid #777;
	pointer-events: none;
	transition: border-color 0s;
}

.pixel-btn::after {
	content: '';
	position: absolute;
	top: 2px;
	bottom: 2px;
	left: 0;
	right: 0;
	border-left: 1px solid #777;
	border-right: 1px solid #777;
	pointer-events: none;
	transition: border-color 0s;
}

.pixel-btn:hover {
	color: #fff;
}

.pixel-btn:hover::before,
.pixel-btn:hover::after {
	border-color: #fff;
}

/* ===== Профиль: Зона загрузки скриншотов (внутри сетки) ===== */

.profile_upload_item {
	background: var(--colorBlock1);
	border: none !important;
	clip-path: polygon(0px calc(100% - 4px), 4px calc(100% - 4px), 4px 100%, calc(100% - 4px) 100%, calc(100% - 4px) calc(100% - 4px), 100% calc(100% - 4px), 100% 4px, calc(100% - 4px) 4px, calc(100% - 4px) 0px, 4px 0px, 4px 4px, 0px 4px);
	transition: background-color 0.2s;
}

.profile_upload_item:hover,
.profile_upload_item.dragover {
	box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.2);
	transform: none !important;
}

.profile_upload_dropzone {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.profile_upload_icon {
	color: var(--text);
	opacity: 0.7;
	transition: opacity 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 4px;
}

.profile_upload_item:hover .profile_upload_icon,
.profile_upload_item.dragover .profile_upload_icon {
	opacity: 1;
}

.profile_upload_text {
	font-family: "Pixy", sans-serif;
	font-size: 11px;
	color: var(--text);
	text-transform: uppercase;
}

.profile_upload_hint {
	font-size: 10px;
	color: var(--text-secondary);
	margin-top: 2px;
}

.profile_upload_progress {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.8);
	gap: 8px;
	padding: 15px;
	z-index: 10;
}

.profile_upload_bar {
	width: 0%;
	height: 4px;
	background: #ffffff;
	transition: width 0.3s ease;
	align-self: stretch;
}

.profile_upload_status {
	font-size: 13px;
	color: var(--text-secondary);
}

/* ===== Профиль: Сетка скриншотов ===== */

.profile_gallery_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	grid-auto-rows: 140px;
	gap: 8px;
}

.profile_gallery_item {
	position: relative;
	overflow: hidden;
	cursor: pointer;
	background: var(--colorBlock1);
	border: 1px solid var(--border);
	transition: border-color 0.2s ease;
}

.profile_gallery_item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter 0.2s ease;
}

.profile_gallery_item:hover {
	box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.2);
	border-color: var(--border);
	z-index: 2;
}

.profile_gallery_item:hover img {
	filter: brightness(1.1);
}

.profile_gallery_date {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 8px 6px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
	color: #fff;
	font-size: 11px;
	text-align: center;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.profile_gallery_item:hover .profile_gallery_date {
	opacity: 1;
}

.profile_gallery_delete {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.75);
	color: #ffffff;
	border: none;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
	z-index: 10;
	font-size: 0;
	/* скрыть ✕ символ, используем SVG */
	/* Пиксельные обрезанные углы */
	clip-path: polygon(0px calc(100% - 4px), 2px calc(100% - 4px), 2px calc(100% - 2px),
			4px calc(100% - 2px), 4px 100%, calc(100% - 4px) 100%,
			calc(100% - 4px) calc(100% - 2px), calc(100% - 2px) calc(100% - 2px),
			calc(100% - 2px) calc(100% - 4px), 100% calc(100% - 4px),
			100% 4px, calc(100% - 2px) 4px, calc(100% - 2px) 2px,
			calc(100% - 4px) 2px, calc(100% - 4px) 0px, 4px 0px,
			4px 2px, 2px 2px, 2px 4px, 0px 4px);
	image-rendering: pixelated;
}

/* Иконка крестика через SVG (добавляется через JS или ::after) */
.profile_gallery_delete::after {
	content: '';
	display: block;
	width: 10px;
	height: 10px;
	/* Пиксельный X через маску */
	background: currentColor;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='2' height='2'/%3E%3Crect x='8' y='0' width='2' height='2'/%3E%3Crect x='2' y='2' width='2' height='2'/%3E%3Crect x='6' y='2' width='2' height='2'/%3E%3Crect x='4' y='4' width='2' height='2'/%3E%3Crect x='2' y='6' width='2' height='2'/%3E%3Crect x='6' y='6' width='2' height='2'/%3E%3Crect x='0' y='8' width='2' height='2'/%3E%3Crect x='8' y='8' width='2' height='2'/%3E%3C/svg%3E");
	mask-repeat: no-repeat;
	mask-size: 100%;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='2' height='2'/%3E%3Crect x='8' y='0' width='2' height='2'/%3E%3Crect x='2' y='2' width='2' height='2'/%3E%3Crect x='6' y='2' width='2' height='2'/%3E%3Crect x='4' y='4' width='2' height='2'/%3E%3Crect x='2' y='6' width='2' height='2'/%3E%3Crect x='6' y='6' width='2' height='2'/%3E%3Crect x='0' y='8' width='2' height='2'/%3E%3Crect x='8' y='8' width='2' height='2'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: 100%;
}

.profile_gallery_edit {
	position: absolute;
	top: 5px;
	right: 36px;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.75);
	color: #ffffff;
	border: none;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
	z-index: 10;
	font-size: 0;
	clip-path: polygon(0px calc(100% - 4px), 2px calc(100% - 4px), 2px calc(100% - 2px),
			4px calc(100% - 2px), 4px 100%, calc(100% - 4px) 100%,
			calc(100% - 4px) calc(100% - 2px), calc(100% - 2px) calc(100% - 2px),
			calc(100% - 2px) calc(100% - 4px), 100% calc(100% - 4px),
			100% 4px, calc(100% - 2px) 4px, calc(100% - 2px) 2px,
			calc(100% - 4px) 2px, calc(100% - 4px) 0px, 4px 0px,
			4px 2px, 2px 2px, 2px 4px, 0px 4px);
	image-rendering: pixelated;
}

.profile_gallery_edit::after {
	content: '';
	display: block;
	width: 12px;
	height: 12px;
	background: currentColor;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z'/%3E%3C/svg%3E");
	mask-repeat: no-repeat;
	mask-size: 100%;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: 100%;
}

.profile_gallery_item:hover .profile_gallery_delete,
.profile_gallery_item:hover .profile_gallery_edit {
	opacity: 1;
}

.profile_gallery_delete:hover {
	background: var(--hoverColor, #ff589b);
	color: #fff;
}

.profile_gallery_edit:hover {
	background: var(--hoverColor, #55ff55);
	color: #fff;
}

/* ===== Панель администратора ===== */
.admin_toggle {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
}
.admin_toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}
.admin_slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--colorBlock1);
	border: 2px solid var(--border);
	transition: .4s;
	clip-path: polygon(0px calc(100% - 4px), 2px calc(100% - 4px), 2px calc(100% - 2px), 4px calc(100% - 2px), 4px 100%, calc(100% - 4px) 100%, calc(100% - 4px) calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) calc(100% - 4px), 100% calc(100% - 4px), 100% 4px, calc(100% - 2px) 4px, calc(100% - 2px) 2px, calc(100% - 4px) 2px, calc(100% - 4px) 0px, 4px 0px, 4px 2px, 2px 2px, 2px 4px, 0px 4px);
}
.admin_slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 2px;
	bottom: 2px;
	background-color: var(--text);
	transition: .4s;
	clip-path: polygon(0px calc(100% - 2px), 2px calc(100% - 2px), 2px 100%, calc(100% - 2px) 100%, calc(100% - 2px) calc(100% - 2px), 100% calc(100% - 2px), 100% 2px, calc(100% - 2px) 2px, calc(100% - 2px) 0px, 2px 0px, 2px 2px, 0px 2px);
}
.admin_toggle input:checked + .admin_slider {
	background-color: var(--hoverColor);
	border-color: var(--hoverColor);
}
.admin_toggle input:checked + .admin_slider:before {
	transform: translateX(20px);
	background-color: var(--text2);
}

/* ===== Вкладки профиля ===== */
.profile_tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}
.profile_tab_btn {
	flex: 1;
	text-align: center;
	padding: 8px 0;
	background: rgba(255, 255, 255, 0.05);
	color: var(--text);
	opacity: 0.7;
	border: none;
	cursor: pointer;
	font-family: "Pixy", sans-serif;
	font-size: 16px;
	text-transform: uppercase;
	transition: background .2s, opacity .2s;
}
.profile_tab_btn:hover {
	background: rgba(255, 255, 255, 0.15);
	opacity: 1;
}
.profile_tab_btn.active {
	background: rgba(255, 255, 255, 0.2);
	opacity: 1;
}

:root.whrite-theme .profile_tab_btn {
	background: rgba(0, 0, 0, 0.05);
}
:root.whrite-theme .profile_tab_btn:hover {
	background: rgba(0, 0, 0, 0.15);
}
:root.whrite-theme .profile_tab_btn.active {
	background: rgba(0, 0, 0, 0.2);
}

/* ===== Модальное окно загрузки скриншота ===== */
.upload_modal_overlay {
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
z-index: 2500;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
box-sizing: border-box;
}

.upload_modal_container {
background: var(--colorBlock1, #1a1a1a);
border: none;
width: 100%;
max-width: 600px;
display: flex;
flex-direction: column;
box-shadow: 0 10px 40px rgba(0,0,0,0.8);
border-radius: 0;
}

.upload_modal_header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 15px 20px;
border-bottom: 1px solid var(--border, rgba(255,255,255,0.1));
background: rgba(0,0,0,0.2);
}

.upload_modal_title {
font-family: "Pixy", sans-serif;
font-size: 18px;
color: var(--text-primary, #fff);
text-transform: uppercase;
letter-spacing: 1px;
}

.upload_modal_close {
font-family: "Vrc", sans-serif;
font-size: 28px;
color: rgba(255,255,255,0.5);
cursor: pointer;
line-height: 1;
transition: color 0.2s;
user-select: none;
}
.upload_modal_close:hover {
color: #fff;
}

.upload_modal_body {
padding: 20px;
display: flex;
flex-direction: column;
gap: 15px;
}

.upload_modal_img_wrap {
width: 100%;
height: 40vh;
min-height: 200px;
background: rgba(0,0,0,0.5);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
border-radius: 0;
}

#uploadPreviewImg {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.upload_modal_textarea {
width: 100%;
height: 80px;
background: rgba(0,0,0,0.3) !important;
border: none !important;
color: #fff;
font-family: "Vrc", sans-serif;
font-size: 14px;
padding: 12px;
box-sizing: border-box;
resize: none;
transition: background 0.2s;
}

.upload_modal_textarea:focus {
outline: none;
background: rgba(0,0,0,0.5) !important;
}
.upload_modal_textarea::placeholder {
color: rgba(255,255,255,0.3);
}

.upload_modal_footer {
display: flex;
justify-content: flex-end;
gap: 12px;
padding: 15px 20px;
background: rgba(0,0,0,0.1);
border-top: 1px solid var(--border, rgba(255,255,255,0.1));
}

.upload_btn {
padding: 10px 24px;
font-family: "Pixy", sans-serif;
font-size: 14px;
text-transform: uppercase;
cursor: pointer;
border: none;
transition: all 0.2s;
letter-spacing: 1px;
}

.upload_btn_cancel {
background: rgba(255,255,255,0.1);
color: rgba(255,255,255,0.8);
border: none !important;
}
.upload_btn_cancel:hover {
background: rgba(255,255,255,0.2);
color: #fff;
}

.upload_btn_confirm {
background: var(--text);
color: var(--text2);
font-weight: bold;
}
.upload_btn_confirm:hover {
background: var(--hoverColor, #ff589b);
color: var(--text);
transform: translateY(-1px);
}
.upload_btn_confirm:active {
	transform: translateY(1px);
}

.profile_territory_delete_btn {
	background: rgba(255, 77, 77, 0.15);
	color: #ff4d4d;
	border: none;
	padding: 4px 12px;
	font-family: 'Pixy', sans-serif;
	font-size: 13px;
	text-transform: uppercase;
	cursor: pointer;
	user-select: none;
	transition: background 0.2s, transform 0.1s;
	clip-path: polygon(0px calc(100% - 2px), 2px calc(100% - 2px), 2px 100%, calc(100% - 2px) 100%, calc(100% - 2px) calc(100% - 2px), 100% calc(100% - 2px), 100% 2px, calc(100% - 2px) 2px, calc(100% - 2px) 0px, 2px 0px, 2px 2px, 0px 2px);
}
.profile_territory_delete_btn:hover {
	background: rgba(255, 77, 77, 0.3);
}
.profile_territory_delete_btn:active {
	transform: translateY(1px);
}

:root.whrite-theme .profile_territory_delete_btn {
	background: rgba(230, 0, 0, 0.15);
	color: #cc0000;
}
:root.whrite-theme .profile_territory_delete_btn:hover {
	background: rgba(230, 0, 0, 0.25);
}

.profile_territory_manage_btn {
	background: rgba(255, 255, 255, 0.1);
	color: var(--text);
	border: none;
	padding: 4px 12px;
	font-family: 'Pixy', sans-serif;
	font-size: 13px;
	text-transform: uppercase;
	cursor: pointer;
	user-select: none;
	transition: background 0.2s, transform 0.1s;
	clip-path: polygon(0px calc(100% - 2px), 2px calc(100% - 2px), 2px 100%, calc(100% - 2px) 100%, calc(100% - 2px) calc(100% - 2px), 100% calc(100% - 2px), 100% 2px, calc(100% - 2px) 2px, calc(100% - 2px) 0px, 2px 0px, 2px 2px, 0px 2px);
}
.profile_territory_manage_btn:hover {
	background: rgba(255, 255, 255, 0.25);
}
.profile_territory_manage_btn:active {
	transform: translateY(1px);
}
:root.whrite-theme .profile_territory_manage_btn {
	background: rgba(0, 0, 0, 0.1);
	color: var(--text);
}
:root.whrite-theme .profile_territory_manage_btn:hover {
	background: rgba(0, 0, 0, 0.2);
}

.profile_list_add_btn {
	background: rgba(85, 255, 85, 0.15);
	color: #55ff55;
	border: none;
	padding: 4px 12px;
	font-family: 'Pixy', sans-serif;
	font-size: 12px;
	text-transform: uppercase;
	cursor: pointer;
	user-select: none;
	transition: background 0.2s, transform 0.1s;
	clip-path: polygon(0px calc(100% - 2px), 2px calc(100% - 2px), 2px 100%, calc(100% - 2px) 100%, calc(100% - 2px) calc(100% - 2px), 100% calc(100% - 2px), 100% 2px, calc(100% - 2px) 2px, calc(100% - 2px) 0px, 2px 0px, 2px 2px, 0px 2px);
}
.profile_list_add_btn:hover {
	background: rgba(85, 255, 85, 0.3);
}
.profile_list_add_btn:active {
	transform: translateY(1px);
}
:root.whrite-theme .profile_list_add_btn {
	background: rgba(0, 200, 0, 0.15);
	color: #00aa00;
}
:root.whrite-theme .profile_list_add_btn:hover {
	background: rgba(0, 200, 0, 0.25);
}

/* Скроллбары для списков исключений */
.custom-scrollbar {
	scrollbar-width: thin;
	scrollbar-color: var(--border) rgba(0, 0, 0, 0.2);
}
.custom-scrollbar::-webkit-scrollbar {
	width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.2);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
	background: var(--border);
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
	background: var(--text);
}