@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:400");

/* =========================
   DJA SORT
   ========================= */

.djasort {
	width: 100%;
	text-align: center;
	padding: 6px 12px;
	position: relative;
	top: auto;
	left: auto;
	transform: none;
	-webkit-transform: none;
	box-sizing: border-box;
}

.djasort ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.djasort ul li {
	margin: 0;
	list-style: none;
	overflow: visible;
}

.djasort ul li a {
	display: inline-block;
	width: auto;
	padding: 12px 24px;
	position: relative;
	box-sizing: border-box;
	border-radius: 999px;
	text-decoration: none;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
	white-space: nowrap;
	transform: none;
	backdrop-filter: blur(6px);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease,
		background-image 0.3s ease,
		color 0.3s ease;
}

.djasort ul li a:hover,
.djasort ul li a:focus-visible {
	color: #fff;
	transform: translateY(-2px) scale(1.04);
	box-shadow:
		0 0 8px rgba(255, 255, 255, 0.8),
		0 0 20px rgba(255, 255, 255, 0.6),
		0 8px 20px rgba(0, 0, 0, 0.3);
	background-image: linear-gradient(
		to bottom right,
		rgba(255, 255, 255, 0.15),
		rgba(255, 255, 255, 0.05)
	);
	outline: none;
}

.djasort ul li.active a {
	color: #fff;
	box-shadow:
		0 0 10px rgba(255, 255, 255, 0.6),
		0 4px 12px rgba(0, 0, 0, 0.25);
}

.djasort ul li:nth-child(1) a {
	background: #6fbf2c;
}

.djasort ul li:nth-child(2n) a {
	background: #ed7902;
}

.djasort ul li:nth-child(3n) a {
	background: #007699;
}

.djasort ul li:nth-child(4n) a {
	background: #e02424;
}

.djasort ul li:nth-child(5n) a {
	background: #4b1376;
}

.djasort .dot {
	position: absolute;
	left: 0;
	bottom: -20px;
	width: 2px;
	height: 2px;
	background-color: red;
	border-radius: 50%;
	transition-duration: 0.5s;

}
/* =========================
   TOKENS TRANSACTIONS
   ========================= */

.token-transactions {
	--bg: #0f172a;
	--bg-soft: #111827;
	--bg-soft-2: #162033;
	--border: #273449;
	--text: #f8fafc;
	--muted: #94a3b8;
	--primary: #38bdf8;
	--positive-bg: #123222;
	--positive-text: #4ade80;
	--negative-bg: #3a1a1f;
	--negative-text: #f87171;
	--shadow: 0 14px 34px rgba(0, 0, 0, 0.35);

	padding: 24px;
	color: var(--text);
	background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
	border: 1px solid var(--border);
	border-radius: 20px;
	box-shadow: var(--shadow);
}

.token-transactions .token-transactions__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 22px;
}

.token-transactions .token-transactions__title {
	margin: 0;
	font-size: 2.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--text);
}

.token-transactions .token-transactions__table-wrap {
	overflow-x: auto;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: 16px;
}

.token-transactions .token-transactions__table {
	width: 100%;
	border-collapse: collapse;
	background: var(--bg-soft);
}

.token-transactions .token-transactions__table thead th {
	padding: 18px 20px;
	text-align: left;
	font-size: 0.92rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #cbd5e1;
	background: #182235;
	border-bottom: 1px solid var(--border);
}

.token-transactions .token-transactions__table tbody tr {
	transition: background 0.2s ease;
}

.token-transactions .token-transactions__table tbody tr:hover {
	background: #162033;
}

.token-transactions .token-transactions__table tbody td {
	padding: 18px 20px;
	text-align: left;
	vertical-align: top;
	font-size: 1rem;
	color: var(--text);
	border-bottom: 1px solid var(--border);
}

.token-transactions .token-transactions__table tbody tr:last-child td {
	border-bottom: 0;
}

.token-transactions .token-transactions__action {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.45;
	text-align: left;
	color: var(--text);
}

.token-transactions .token-transactions__action::before {
	content: none;
}

.token-transactions .token-transactions__tokens {
	display: inline-block;
	padding: 8px 14px;
	text-align: center;
	white-space: nowrap;
	font-size: 1.4rem;
	font-weight: 800;
	line-height: 1;
	border: 1px solid transparent;
	border-radius: 999px;
}

.token-transactions .token-transactions__tokens.is-positive {
	color: var(--positive-text);
	background: var(--positive-bg);
	border-color: #1d4d32;
}

.token-transactions .token-transactions__tokens.is-negative {
	color: var(--negative-text);
	background: var(--negative-bg);
	border-color: #5a2830;
}

.token-transactions .token-transactions__info {
	font-size: 1.4rem;
	line-height: 1.4;
	text-align: left;
	color: var(--text);
	word-break: break-word;
}

.token-transactions .token-transactions__info-main {
	display: block;
}

.token-transactions .token-transactions__notes {
	margin-top: 8px;
	font-size: 1.4rem;
	line-height: 1.5;
	color: var(--muted);
}

.token-transactions .token-transactions__muted {
	color: var(--muted);
}

.token-transactions .token-transactions__date {
	display: inline-block;
	font-size: 1.4rem;
	line-height: 1.2;
	text-align: left;
	color: var(--muted);
	word-break: break-word;
}

.token-transactions .token-transactions__mobile-box {
	width: 100%;
	text-align: left;
}

.token-transactions .token-transactions__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px 24px;
	text-align: center;
	background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
	border: 1px dashed var(--border);
	border-radius: 16px;
}

.token-transactions .token-transactions__empty-icon {
	margin-bottom: 12px;
	font-size: 2.2rem;
	color: var(--primary);
}

.token-transactions .token-transactions__empty-text {
	font-size: 1rem;
	color: var(--muted);
}

@media (max-width: 768px) {
	.token-transactions {
		padding: 14px;
		border-radius: 16px;
	}

	.token-transactions .token-transactions__header {
		margin-bottom: 16px;
	}

	.token-transactions .token-transactions__title {
		font-size: 2.5rem;
		line-height: 1.2;
	}

	.token-transactions .token-transactions__table-wrap {
		overflow: visible;
		background: transparent;
		border: 0;
		border-radius: 0;
	}

	.token-transactions .token-transactions__table,
	.token-transactions .token-transactions__table thead,
	.token-transactions .token-transactions__table tbody,
	.token-transactions .token-transactions__table tr,
	.token-transactions .token-transactions__table td {
		display: block;
		width: 100%;
	}

	.token-transactions .token-transactions__table thead {
		display: none;
	}

	.token-transactions .token-transactions__table tbody tr {
		margin-bottom: 14px;
		padding: 14px;
		overflow: hidden;
		background: linear-gradient(180deg, #131d2e 0%, #111827 100%);
		border: 1px solid var(--border);
		border-radius: 16px;
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
	}

	.token-transactions .token-transactions__table tbody tr:last-child {
		margin-bottom: 0;
	}

	.token-transactions .token-transactions__table tbody td {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 12px;
		margin: 0 0 10px;
		padding: 0 0 10px;
		text-align: left;
		border: 0;
		border-bottom: 1px solid rgba(148, 163, 184, 0.12);
	}

	.token-transactions .token-transactions__table tbody td:last-child {
		margin-bottom: 0;
		padding-bottom: 0;
		border-bottom: 0;
	}

	.token-transactions .token-transactions__cell {
		margin-bottom: 12px;
	}

	.token-transactions .token-transactions__cell:last-child {
		margin-bottom: 0;
	}

	.token-transactions .token-transactions__cell--action .token-transactions__mobile-box {
		padding-bottom: 4px;
	}

	.token-transactions .token-transactions__cell--tokens .token-transactions__mobile-box {
		padding-bottom: 2px;
	}

	.token-transactions .token-transactions__cell--info {
		padding-top: 12px;
		border-top: 1px solid rgba(148, 163, 184, 0.16);
	}

	.token-transactions .token-transactions__cell--date {
		padding-top: 10px;
		border-top: 1px dashed rgba(148, 163, 184, 0.14);
	}

	.token-transactions .token-transactions__table tbody td::before {
		content: attr(data-label);
		flex: 0 0 90px;
		max-width: 90px;
		margin: 0;
		padding: 0;
		text-align: left;
		font-size: 1rem;
		font-weight: 800;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: #60a5fa;
	}

	.token-transactions td.token-transactions__cell--action::before,
	.token-transactions td.token-transactions__cell--tokens::before {
		display: none;
		content: none;
	}

	.token-transactions .token-transactions__mobile-box {
		flex: 1;
		text-align: right;
	}

	.token-transactions .token-transactions__action,
	.token-transactions .token-transactions__info,
	.token-transactions .token-transactions__date {
		text-align: right;
	}

	.token-transactions .token-transactions__action {
		display: flex;
		align-items: flex-start;
		font-size: 1.4rem;
		line-height: 1.45;
	}

	.token-transactions .token-transactions__tokens {
		margin-left: auto;
		padding: 8px 12px;
		font-size: 1.5rem;
	}

	.token-transactions .token-transactions__info {
		font-size: 1.2rem;
		line-height: 1.55;
	}

	.token-transactions .token-transactions__notes {
		font-size: 1.2rem;
	}

	.token-transactions .token-transactions__date {
		display: block;
		font-size: 1.2rem;
	}
}

/* =========================
   POST VIEW
   ========================= */

.post-view-dark {
	--bg: #0b1020;
	--bg-accent: #11182d;
	--panel: rgba(17, 24, 45, 0.82);
	--panel-strong: rgba(20, 29, 53, 0.96);
	--panel-soft: rgba(255, 255, 255, 0.04);
	--text: #eef2ff;
	--text-soft: #a5b4d4;
	--text-muted: #7f8dad;
	--border: rgba(148, 163, 184, 0.16);
	--border-strong: rgba(148, 163, 184, 0.24);
	--primary: #6d5efc;
	--primary-2: #22c1c3;
	--success: #22c55e;
	--danger: #f43f5e;
	--warning: #f59e0b;
	--shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
	--radius-xl: 24px;
	--radius-lg: 18px;
	--radius-md: 14px;

	max-width: 1180px;
	margin: 0 auto;
	padding: 34px 24px 42px;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at top left, rgba(109, 94, 252, 0.18), transparent 28%),
		radial-gradient(circle at top right, rgba(34, 193, 195, 0.14), transparent 24%),
		linear-gradient(180deg, #09101d 0%, #0b1020 100%);
	border-radius: 28px;
	overflow-wrap: anywhere;
}

.post-view-dark .headline {
	padding: 0 0 18px;
}

.post-view-dark .headline h1 {
	position: relative;
	overflow: hidden;
	margin: 0;
	padding: 34px 36px;
	font-size: clamp(2.1rem, 4vw, 3.35rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: 0.02em;
	color: #ffffff;
	word-break: break-word;
	background:
		linear-gradient(135deg, rgba(109, 94, 252, 0.22), rgba(34, 193, 195, 0.12)),
		linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
	border: 1px solid var(--border);
	border-radius: 28px;
	box-shadow: var(--shadow);
	backdrop-filter: blur(14px);
}

.post-view-dark .headline h1::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
	transform: translateX(-100%);
	pointer-events: none;
}

.post-view-dark .block-post {
	padding: 0;
}

.post-view-dark .post-holder,
.post-view-dark .block-post > div:not(.post-holder):not(.block-flagging):not(.actions) {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
	backdrop-filter: blur(14px);
}

.post-view-dark .post-holder {
	position: relative;
	overflow: hidden;
	margin-bottom: 30px;
	padding: 30px;
}

.post-view-dark .post-holder::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.post-view-dark .post-content {
	font-size: 2rem;
	line-height: 1.9;
	color: var(--text-soft);
	word-break: break-word;
	overflow-wrap: anywhere;
}

.post-view-dark .post-content p:first-child {
	margin-top: 0;
}

.post-view-dark .post-content img,
.post-view-dark .post-content video,
.post-view-dark .post-content iframe {
	max-width: 100%;
	height: auto;
	border: 1px solid var(--border);
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.post-view-dark .post-content iframe {
	width: 100%;
}

.post-view-dark .post-image {
	margin: 0 0 18px;
	text-align: center;
}

.post-view-dark .post-image img {
	display: inline-block;
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.post-view-dark .block-post h2 {
	position: relative;
	margin: 34px 0 14px;
	padding-left: 16px;
	font-size: 2.5rem;
	font-weight: 750;
	letter-spacing: -0.01em;
	color: #ffffff;
	word-break: break-word;
}

.post-view-dark .block-post h2::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 6px;
	height: 24px;
	background: linear-gradient(180deg, var(--primary), var(--primary-2));
	border-radius: 999px;
	transform: translateY(-50%);
}

.post-view-dark .block-post h2 + div {
	overflow: hidden;
}

.post-view-dark .block-post h2 + div p {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 20px;
	align-items: start;
	margin: 0;
	padding: 18px 22px;
	background: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.post-view-dark .block-post h2 + div p:nth-child(odd) {
	background: rgba(255, 255, 255, 0.02);
}

.post-view-dark .block-post h2 + div p:last-child {
	border-bottom: 0;
}

.post-view-dark .block-post p label,
.post-view-dark .block-flagging .row > label {
	display: block;
	font-size: 1.5rem;
	font-weight: 650;
	letter-spacing: 0.01em;
	color: #dbe4ff;
}

.post-view-dark .block-post p span {
	min-width: 0;
	line-height: 1.75;
	color: var(--text-soft);
	overflow-wrap: anywhere;
}

.post-view-dark .block-post a {
	color: #8ab4ff;
	text-decoration: none;
	word-break: break-word;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.post-view-dark .block-post a:hover,
.post-view-dark .block-post a:focus-visible {
	color: #c4d7ff;
	outline: none;
}

.post-view-dark .rating-container {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.post-view-dark .rating-container .voters {
	display: inline-flex;
	align-items: center;
	padding: 9px 14px;
	font-size: 1.3rem;
	font-weight: 600;
	color: #e9e7ff;
	background: linear-gradient(135deg, rgba(109, 94, 252, 0.22), rgba(34, 193, 195, 0.16));
	border: 1px solid rgba(109, 94, 252, 0.28);
	border-radius: 999px;
}

.post-view-dark .rate-like,
.post-view-dark .rate-dislike {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 4px 8px;
	white-space: nowrap;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none !important;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	backdrop-filter: blur(10px);
}

.post-view-dark .rate-like:hover,
.post-view-dark .rate-like:focus-visible {
	color: #86efac;
	background: rgba(34, 197, 94, 0.08);
	border-color: rgba(34, 197, 94, 0.45);
	outline: none;
}

.post-view-dark .rate-dislike:hover,
.post-view-dark .rate-dislike:focus-visible {
	color: #fda4af;
	background: rgba(244, 63, 94, 0.08);
	border-color: rgba(244, 63, 94, 0.45);
	outline: none;
}

.post-view-dark .block-post img[width][height] {
	margin-left: 10px;
	vertical-align: middle;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.post-view-dark .block-flagging {
	margin-top: 4px;
	padding: 26px;
	background: var(--panel-strong);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
	backdrop-filter: blur(14px);
}

.post-view-dark .block-flagging form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.post-view-dark .block-flagging .row {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 20px;
	align-items: start;
}

.post-view-dark .block-flagging .row span {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--text-soft);
}

.post-view-dark .block-flagging .textarea {
	width: 100%;
	min-height: 120px;
	padding: 14px 16px;
	box-sizing: border-box;
	font: inherit;
	color: var(--text);
	resize: vertical;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 16px;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background 0.2s ease;
}

.post-view-dark .block-flagging .textarea:focus {
	outline: none;
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(109, 94, 252, 0.55);
	box-shadow: 0 0 0 4px rgba(109, 94, 252, 0.14);
}

.post-view-dark .block-flagging .buttons {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 4px;
}

.post-view-dark .block-flagging input[type="submit"] {
	padding: 12px 22px;
	font-size: 1.9rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: #ffffff;
	cursor: pointer;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	border: 0;
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(78, 96, 255, 0.28);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		opacity 0.2s ease;
}

.post-view-dark .block-flagging input[type="submit"]:hover,
.post-view-dark .block-flagging input[type="submit"]:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 18px 36px rgba(78, 96, 255, 0.35);
	outline: none;
}

.post-view-dark .generic-error,
.post-view-dark .success {
	padding: 14px 16px;
	font-size: 0.94rem;
	border: 1px solid transparent;
	border-radius: 14px;
}

.post-view-dark .generic-error {
	color: #fecdd3;
	background: rgba(244, 63, 94, 0.12);
	border-color: rgba(244, 63, 94, 0.22);
}

.post-view-dark .success {
	color: #bbf7d0;
	background: rgba(34, 197, 94, 0.12);
	border-color: rgba(34, 197, 94, 0.22);
}

.post-view-dark .hidden {
	display: none;
}

.post-view-dark .actions {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
	padding: 14px 18px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: var(--shadow);
	backdrop-filter: blur(10px);
}

.post-view-dark .actions label {
	margin: 0;
	font-weight: 650;
	color: var(--text);
	cursor: pointer;
}

.post-view-dark input[type="checkbox"],
.post-view-dark input[type="radio"] {
	accent-color: var(--primary);
}

.post-view-dark .btn-gradient {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 15px;
	font-size: 1.9rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: #ffffff !important;
	text-decoration: none;
	cursor: pointer;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	border: none;
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(78, 96, 255, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-view-dark .btn-gradient:hover,
.post-view-dark .btn-gradient:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 18px 36px rgba(78, 96, 255, 0.35);
	outline: none;
}

.post-view-dark .post-media-author {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin-bottom: -30px;
}

.post-view-dark .post-media-author .post-image {
	width: 100%;
	margin: 0 0 12px;
	text-align: center;
}

.post-view-dark .created-by-row {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin: 0;
	text-align: right;
}

.post-view-dark .created-by-row label {
	margin-bottom: 6px;
}

.post-view-dark .created-by-info {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
}

@media (max-width: 820px) {
	.post-view-dark {
		padding: 22px 14px 32px;
		border-radius: 20px;
	}

	.post-view-dark .headline {
		padding-bottom: 16px;
	}

	.post-view-dark .headline h1 {
		padding: 24px 20px;
		font-size: clamp(1.7rem, 7vw, 2.35rem);
		line-height: 1.95;
		border-radius: 22px;
	}

	.post-view-dark .post-holder,
	.post-view-dark .block-flagging {
		padding: 18px;
		border-radius: 18px;
	}

	.post-view-dark .post-content {
		font-size: 1.85rem;
		line-height: 1.75;
	}

	.post-view-dark .block-post h2 {
		margin: 24px 0 12px;
		padding-left: 12px;
		font-size: 2.15rem;
	}

	.post-view-dark .block-post h2::before {
		width: 5px;
		height: 18px;
	}

	.post-view-dark .block-post h2 + div p,
	.post-view-dark .block-flagging .row {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.post-view-dark .block-post h2 + div p {
		padding: 15px 16px;
	}

	.post-view-dark .block-post p label,
	.post-view-dark .block-flagging .row > label {
		font-size: 2rem;
	}

	.post-view-dark .block-post p span {
		font-size: 2.1rem;
		line-height: 1.5;
	}

	.post-view-dark .rating-container {
		display: inline-flex;
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		gap: 6px;
	}

	.post-view-dark .rating-container .voters,
	.post-view-dark .rate-like,
	.post-view-dark .rate-dislike {
		font-size: 1.5rem;
	}

	.post-view-dark .rate-like,
	.post-view-dark .rate-dislike {
		width: auto;
		padding: 3px 20px;
		font-size: 1.5rem;
	}

	.post-view-dark .block-post img[width][height] {
		display: block;
		max-width: 52px;
		margin: 12px 0 0;
	}

	.post-view-dark .block-flagging .buttons {
		justify-content: flex-start;
	}

	.post-view-dark .block-flagging input[type="submit"] {
		width: 100%;
		font-size: 1.7rem;
	}

	.post-view-dark .actions {
		width: 100%;
		justify-content: flex-start;
	}
}

@media (max-width: 480px) {
	.post-view-dark {
		padding: 16px 10px 24px;
	}

	.post-view-dark .headline h1 {
		padding: 18px 16px;
		font-size: 2.5rem;
		border-radius: 18px;
	}

	.post-view-dark .post-holder,
	.post-view-dark .block-flagging {
		padding: 14px;
		border-radius: 16px;
	}

	.post-view-dark .post-content {
		font-size: 2rem;
		line-height: 1.7;
	}

	.post-view-dark .block-post h2 {
		font-size: 1.85rem;
	}

	.post-view-dark .block-post h2 + div p {
		padding: 13px 14px;
	}

	.post-view-dark .rating-container .voters {
		width: auto;
		justify-content: center;
	}

	.post-view-dark .rate-like,
	.post-view-dark .rate-dislike {
		width: 50px;
		justify-content: center;
		padding: 0 6px;
		font-size: 1.66rem;
	}
}

/* =========================
   POST LIST
   ========================= */

.list-posts {
	max-width: 1100px;
	margin: 40px auto;
	padding: 0 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #e6e6e6;
}

.list-posts h1,
.list-posts h2,
.list-posts h3,
.list-posts h4,
.list-posts h5,
.list-posts h6 {
	margin-bottom: 20px;
	font-size: 28px;
	font-weight: 600;
	color: #ffffff;
}

.list-posts .items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.list-posts .item {
	padding: 18px;
	background: #042529;
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-posts .item:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.list-posts .item > a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.list-posts .image-wrap {
	width: 100%;
	height: 180px;
	margin-bottom: 14px;
	overflow: hidden;
	background: #111;
	border-radius: 12px;
}

.list-posts .image-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.list-posts .image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 24px;
	color: #555;
}

.list-posts .badge {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 10px;
	font-size: 16px;
	color: #d0d0d0;
	background: #2c2c2e;
	border-radius: 999px;
}

.list-posts .title {
	margin: 6px 0 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #ffffff;
}

.list-posts .desc {
	margin-bottom: 12px;
	font-size: 14px;
	color: #b0b0b0;
}

.list-posts .meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	font-size: 14px;
	color: #9a9a9a;
}

.list-posts .meta i {
	margin-right: 6px;
	color: #4f8cff;
}

.list-posts .actions {
	margin-top: 12px;
	font-size: 15px;
	color: #ccc;
}

.list-posts input[type="checkbox"] {
	accent-color: #4f8cff;
}

.list-posts .buttons {
	margin-top: 20px;
}

.list-posts .buttons input[type="submit"] {
	padding: 10px 18px;
	color: #fff;
	cursor: pointer;
	background: #4f8cff;
	border: none;
	border-radius: 8px;
	transition: background 0.2s ease, transform 0.1s ease;
}

.list-posts .buttons input[type="submit"]:hover,
.list-posts .buttons input[type="submit"]:focus-visible {
	background: #6ea0ff;
	transform: translateY(-1px);
	outline: none;
}

.list-posts .buttons input[type="submit"]:disabled {
	background: #444;
	cursor: not-allowed;
}

.list-posts .text {
	padding: 40px;
	text-align: center;
	color: #888;
	background: #1a1a1a;
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 12px;
}

/* =========================
   EXTRA POST LIST
   ========================= */

.alert-success {
	margin: 15px 0;
	padding: 12px 16px;
	color: #155724;
	background: #d4edda;
	border: 1px solid #c3e6cb;
	border-radius: 6px;
}

.chosencolors .djasort ul li a[data-color="green"] {
	background: #6fbf2c;
}

.chosencolors .djasort ul li a[data-color="darkgreen"] {
	background: #00994d;
}

.chosencolors .djasort ul li a[data-color="mint"] {
	background: #1fcf9b;
}

.chosencolors .djasort ul li a[data-color="red"] {
	background: #e02424;
}

.chosencolors .djasort ul li a[data-color="purple"] {
	background: #6a2bbf;
}

.chosencolors .djasort ul li a[data-color="lightblue"] {
	background: #0044ab;
}

.list-posts .actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 14px 0 10px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 14px;
	backdrop-filter: blur(12px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.list-posts .actions:hover {
	border-color: rgba(109, 94, 252, 0.35);
	box-shadow: 0 12px 30px rgba(78, 96, 255, 0.25);
}

.list-posts .actions input[type="checkbox"] {
	position: relative;
	width: 22px;
	height: 22px;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(148, 163, 184, 0.35);
	border-radius: 7px;
	appearance: none;
	-webkit-appearance: none;
	transition: all 0.2s ease;
}

.list-posts .actions input[type="checkbox"]:hover {
	border-color: rgba(109, 94, 252, 0.6);
	box-shadow: 0 0 0 4px rgba(109, 94, 252, 0.15);
}

.list-posts .actions input[type="checkbox"]:checked {
	background: linear-gradient(135deg, #6d5efc, #22c1c3);
	border-color: transparent;
	box-shadow: 0 6px 18px rgba(78, 96, 255, 0.35);
}

.list-posts .actions input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 6px;
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.list-posts .actions input[type="checkbox"]:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	background: rgba(255, 255, 255, 0.03);
}

.list-posts .actions label {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
	color: #dbe4ff;
	cursor: pointer;
	transition: color 0.2s ease;
}

.list-posts .actions input[type="checkbox"]:checked + label {
	color: #ffffff;
	text-shadow: 0 0 8px rgba(109, 94, 252, 0.6);
}

.list-posts .buttons3 input[type="submit"] {
	margin-top: 20px;
	padding: 12px 20px;
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #ffffff;
	cursor: pointer;
	background: linear-gradient(135deg, #f43f5e, #dc2626);
	border: 0;
	border-radius: 14px;
	box-shadow: none;
	transition: all 0.2s ease;
}

.list-posts .buttons3 input[type="submit"]:hover,
.list-posts .buttons3 input[type="submit"]:focus-visible {
	transform: translateY(-1px);
	filter: brightness(1.05);
	box-shadow: 0 18px 10px rgba(244, 63, 94, 0.45);
	outline: none;
}

.list-posts .buttons3 input[type="submit"]:active {
	transform: translateY(0);
	box-shadow: 0 8px 18px rgba(244, 63, 94, 0.3);
}

.list-posts .buttons3 input[type="submit"]:disabled {
	color: rgba(255, 255, 255, 0.4);
	cursor: not-allowed;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: none;
}

/* =========================
   POST COMMENTS
   ========================= */

.block-comments {
	width: 100%;
	max-width: 1100px;
	margin: -25px auto;
	padding: 24px;
	color: #f9fafb;
	background: #111827;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.block-comments form {
	margin: 0;
}

.block-comments .comments-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 20px;
}

.block-comments .comments-head-left {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.block-comments .field-label {
	display: block;
	margin-bottom: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
}

.block-comments .hint {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
}

.block-comments .toggle-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	background: linear-gradient(135deg, #6d5efc, #48ecd5);
	border: none;
	border-radius: 15px;
	box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28);
	transition: all 0.25s ease;
}

.block-comments .toggle-button:hover,
.block-comments .toggle-button:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(124, 58, 237, 0.35);
	outline: none;
}

.block-comments .success {
	margin-bottom: 16px;
	padding: 14px 16px;
	font-size: 14px;
	color: #d1fae5;
	background: rgba(16, 185, 129, 0.14);
	border: 1px solid rgba(16, 185, 129, 0.28);
	border-radius: 14px;
}

.block-comments .generic-error,
.block-comments .field-error {
	margin-top: 8px;
	font-size: 13px;
	color: #fca5a5;
}

.block-comments .block-new-comment {
	margin-bottom: 24px;
}

.block-comments .comment-form-card,
.block-comments .popup-holder form > div:last-child {
	padding: 20px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	backdrop-filter: blur(10px);
}

.block-comments .row {
	margin-bottom: 18px;
}

.block-comments .textfield,
.block-comments .textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	font-size: 14px;
	color: #fff;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	outline: none;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background 0.2s ease;
}

.block-comments .textfield::placeholder,
.block-comments .textarea::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.block-comments .textfield:focus,
.block-comments .textarea:focus {
	background: rgba(255, 255, 255, 0.06);
	border-color: #8b5cf6;
	box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.block-comments .textarea {
	min-height: 120px;
	resize: vertical;
}

.block-comments .smileys-support {
	padding: 12px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 16px;
}

.block-comments .bottom {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 8px;
}

.block-comments .captcha-control {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 16px;
}

.block-comments .captcha-control .image {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.block-comments .captcha-control img {
	max-width: 180px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
}

.block-comments .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	cursor: pointer;
	background: #ffffff;
	border: none;
	border-radius: 14px;
	transition: all 0.25s ease;
}

.block-comments .submit:hover,
.block-comments .submit:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(255, 255, 255, 0.15);
	outline: none;
}

.block-comments .comments-list-wrap {
	margin-top: 10px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.popup-edit-comment {
	padding: 22px;
	color: #fff;
	background: #111827;
	border-radius: 20px;
}

.popup-edit-comment .popup-title {
	display: block;
	margin-bottom: 16px;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
}

@media (max-width: 767px) {
	.block-comments {
		padding: 18px;
		border-radius: 16px;
	}

	.block-comments .comments-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.block-comments .toggle-button,
	.block-comments .submit {
		width: 100%;
	}

	.block-comments .captcha-control {
		flex-direction: column;
		align-items: stretch;
	}
}

/* =========================
   ADD POST / EDIT POST
   ========================= */

	.post-editor-wrap {
		--bg: #0f172a;
		--bg-soft: #111827;
		--bg-soft-2: #162033;
		--border: #273449;
		--text: #f8fafc;
		--muted: #94a3b8;
		--primary: #38bdf8;
		--primary-hover: #0ea5e9;
		--positive-bg: #123222;
		--positive-text: #4ade80;
		--negative-bg: #3a1a1f;
		--negative-text: #f87171;
		--shadow: 0 14px 34px rgba(0, 0, 0, 0.35);

		--card-bg: linear-gradient(180deg, #0f172a 0%, #111827 100%);
		--panel-bg: #111827;
		--panel-bg-2: #162033;
		--input-bg: #162033;
		--input-border: #273449;
		--input-focus: rgba(56, 189, 248, 0.22);
		--input-text: #f8fafc;
		--input-placeholder: #94a3b8;
		--tag-bg: rgba(56, 189, 248, 0.14);
		--tag-border: rgba(56, 189, 248, 0.28);
		--tag-text: #7dd3fc;
		--error-bg: #3a1a1f;
		--error-border: #5a2830;
		--error-text: #f87171;
		--success-bg: #123222;
		--success-border: #1d4d32;
		--success-text: #4ade80;

		color: var(--text);
	}

	.post-editor-wrap *,
	.post-editor-wrap *::before,
	.post-editor-wrap *::after {
		box-sizing: border-box;
	}

	.post-editor-wrap {
		max-width: 980px;
		margin: 32px auto;
		padding: 0 18px;
	}

	.post-editor-wrap .post-editor-card {
		background: var(--card-bg);
		border: 1px solid var(--border);
		border-radius: 20px;
		box-shadow: var(--shadow);
		padding: 24px;
		color: var(--text);
	}

	.post-editor-wrap .post-editor-inner {
		position: relative;
	}

	.post-editor-wrap .header {
		margin: 0 0 8px;
		font-size: 2.1rem;
		font-weight: 800;
		letter-spacing: -0.02em;
		line-height: 1.2;
		color: var(--text);
	}

	.post-editor-wrap .subheader {
		font-size: 1.7rem;
		line-height: 1.5;
		color: var(--muted);
		margin-bottom: 22px;
	}

	.post-editor-wrap .message {
		background: var(--success-bg);
		color: var(--success-text);
		border: 1px solid var(--success-border);
		border-radius: 16px;
		padding: 16px 18px;
		font-size: 1rem;
		font-weight: 700;
		box-shadow: var(--shadow);
	}

	.post-editor-wrap form {
		display: grid;
		gap: 18px;
	}

	.post-editor-wrap .row {
		display: grid;
		gap: 8px;
	}

	.post-editor-wrap label {
		display: inline-block;
		font-size: 1.5rem;
		font-weight: 700;
		color: #cbd5e1;
		letter-spacing: 0.02em;
	}

	.post-editor-wrap label.required::after {
		content: " *";
		color: var(--negative-text);
	}

	.post-editor-wrap input[type="text"],
	.post-editor-wrap textarea,
	.post-editor-wrap select {
		width: 100%;
		background: var(--input-bg);
		border: 1px solid var(--input-border);
		border-radius: 14px;
		padding: 14px 15px;
		font-size: 1.7rem;
		line-height: 1.45;
		color: var(--input-text);
		outline: none;
		transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	}

	.post-editor-wrap input[type="text"]::placeholder,
	.post-editor-wrap textarea::placeholder {
		color: var(--input-placeholder);
	}

	.post-editor-wrap input[type="text"]:focus,
	.post-editor-wrap textarea:focus,
	.post-editor-wrap select:focus {
		border-color: var(--primary);
		box-shadow: 0 0 0 4px var(--input-focus);
	}

	.post-editor-wrap textarea {
		resize: vertical;
		min-height: 116px;
	}

	.post-editor-wrap select {
		appearance: none;
		-webkit-appearance: none;
		-moz-appearance: none;
		padding-right: 40px;
		background-image:
			linear-gradient(45deg, transparent 50%, #60a5fa 50%),
			linear-gradient(135deg, #60a5fa 50%, transparent 50%);
		background-position:
			calc(100% - 18px) calc(50% - 3px),
			calc(100% - 12px) calc(50% - 3px);
		background-size: 6px 6px, 6px 6px;
		background-repeat: no-repeat;
	}

	.post-editor-wrap option {
		background: #111827;
		color: var(--text);
	}

	.post-editor-wrap .field-error {
		min-height: 16px;
		font-size: 0.84rem;
		color: var(--error-text);
	}

	.post-editor-wrap .generic-error {
		background: var(--error-bg);
		color: var(--error-text);
		border: 1px solid var(--error-border);
		padding: 12px 14px;
		border-radius: 14px;
		font-size: 0.95rem;
		font-weight: 700;
	}

	.post-editor-wrap .hidden {
		display: none;
	}

	.post-editor-wrap ul[data-name="model_ids"] {
		list-style: none;
		padding: 0;
		margin: 0;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		gap: 10px;
	}

	.post-editor-wrap ul[data-name="model_ids"] li {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 12px 14px;
		border: 1px solid var(--border);
		border-radius: 14px;
		background: var(--bg-soft);
		transition: background 0.2s ease, border-color 0.2s ease;
	}

	.post-editor-wrap ul[data-name="model_ids"] li:hover {
		background: var(--bg-soft-2);
	}

	.post-editor-wrap ul[data-name="model_ids"] label {
		margin: 0;
		font-size: 1.2rem;
		font-weight: 600;
		color: var(--text);
		cursor: pointer;
	}

	.post-editor-wrap input[type="checkbox"] {
		width: 16px;
		height: 16px;
		accent-color: var(--primary);
		flex: 0 0 auto;
	}

	.post-editor-wrap .captcha-control {
		display: grid;
		gap: 12px;
		padding: 16px;
		border: 1px dashed var(--border);
		border-radius: 16px;
		background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
	}

	.post-editor-wrap .captcha-control img {
		max-width: 240px;
		border-radius: 12px;
		border: 1px solid var(--border);
		background: #fff;
	}

	.post-editor-wrap .buttons {
		display: flex;
		justify-content: flex-end;
		padding-top: 8px;
		margin-top: 6px;
		border-top: 1px solid var(--border);
	}

	.post-editor-wrap input[type="submit"] {
		border: none;
		background: linear-gradient(135deg, #0ea5e9, #38bdf8);
		color: #082032;
		padding: 14px 24px;
		border-radius: 14px;
		font-size: 1.6rem;
		font-weight: 800;
		letter-spacing: 0.01em;
		cursor: pointer;
		box-shadow: 0 10px 24px rgba(56, 189, 248, 0.24);
		transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
	}

	.post-editor-wrap input[type="submit"]:hover {
		transform: translateY(-1px);
		filter: brightness(1.03);
		box-shadow: 0 14px 28px rgba(56, 189, 248, 0.3);
	}

	.post-editor-wrap input[type="submit"]:disabled,
	.post-editor-wrap input[disabled],
	.post-editor-wrap textarea[disabled],
	.post-editor-wrap select[disabled] {
		opacity: 0.6;
		cursor: not-allowed;
	}

	.post-editor-wrap .category-select {
		position: relative;
	}

	.post-editor-wrap .category-trigger {
		min-height: 52px;
		border: 1px solid var(--input-border);
		background: var(--input-bg);
		border-radius: 14px;
		padding: 10px 42px 10px 12px;
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
		cursor: pointer;
		position: relative;
		transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	}

	.post-editor-wrap .category-trigger:hover {
		border-color: #36506d;
	}

	.post-editor-wrap .category-select.open .category-trigger {
		border-color: var(--primary);
		box-shadow: 0 0 0 4px var(--input-focus);
	}

	.post-editor-wrap .category-trigger::after {
		content: "";
		position: absolute;
		right: 14px;
		top: 50%;
		width: 10px;
		height: 10px;
		border-right: 2px solid #60a5fa;
		border-bottom: 2px solid #60a5fa;
		transform: translateY(-70%) rotate(45deg);
		transition: transform 0.2s ease;
	}

	.post-editor-wrap .category-select.open .category-trigger::after {
		transform: translateY(-30%) rotate(-135deg);
	}

	.post-editor-wrap .category-placeholder {
		color: var(--muted);
		font-size: 1.4rem;
		padding: 2px 0;
	}

	.post-editor-wrap .category-tag {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		max-width: 100%;
		background: var(--tag-bg);
		color: var(--tag-text);
		border: 1px solid var(--tag-border);
		padding: 7px 10px;
		border-radius: 999px;
		font-size: 0.82rem;
		font-weight: 800;
		line-height: 1;
	}

	.post-editor-wrap .category-tag button {
		border: none;
		background: transparent;
		color: inherit;
		font-size: 14px;
		line-height: 1;
		cursor: pointer;
		padding: 0;
	}

	.post-editor-wrap .category-dropdown {
		position: absolute;
		top: calc(100% + 8px);
		left: 0;
		right: 0;
		background: var(--bg-soft);
		border: 1px solid var(--border);
		border-radius: 16px;
		box-shadow: var(--shadow);
		padding: 10px;
		z-index: 30;
		display: none;
	}

	.post-editor-wrap .category-select.open .category-dropdown {
		display: block;
	}

	.post-editor-wrap .category-search {
		margin-bottom: 10px;
	}

	.post-editor-wrap .category-search input {
		padding: 12px 14px;
		border-radius: 12px;
	}

	.post-editor-wrap .category-options {
		max-height: 240px;
		overflow: auto;
		padding-right: 2px;
	}

	.post-editor-wrap .category-option {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 10px 10px;
		border-radius: 12px;
		cursor: pointer;
		transition: background 0.15s ease;
		color: var(--text);
	}

	.post-editor-wrap .category-option:hover {
		background: var(--bg-soft-2);
	}

	.post-editor-wrap .category-option.hidden-option {
		display: none;
	}

	.post-editor-wrap .category-option input {
		margin: 0;
	}

	.post-editor-wrap .category-empty {
		display: none;
		padding: 10px;
		font-size: 0.9rem;
		color: var(--muted);
	}

	.post-editor-wrap .category-empty.show {
		display: block;
	}

	.post-editor-wrap .image-upload {
		display: grid;
		gap: 12px;
	}

	.post-editor-wrap .image-upload-box {
		position: relative;
		display: grid;
		gap: 12px;
		padding: 16px;
		border: 1px dashed #3b4d68;
		border-radius: 16px;
		background: linear-gradient(180deg, rgba(22, 32, 51, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
		transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	}

	.post-editor-wrap .image-upload-box:hover {
		border-color: #4f6b8b;
	}

	.post-editor-wrap .image-upload-box.is-dragover {
		border-color: var(--primary);
		box-shadow: 0 0 0 4px var(--input-focus);
		background: linear-gradient(180deg, rgba(27, 44, 70, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
	}

	.post-editor-wrap .image-upload-top {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}

	.post-editor-wrap .image-upload-copy {
		display: grid;
		gap: 4px;
	}

	.post-editor-wrap .image-upload-title {
		font-size: 1.1rem;
		font-weight: 700;
		color: var(--text);
	}

	.post-editor-wrap .image-upload-hint {
		font-size: 0.92rem;
		color: var(--muted);
		line-height: 1.45;
	}

	.post-editor-wrap .image-upload-actions {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
	}

	.post-editor-wrap .file-button,
	.post-editor-wrap .file-clear {
		border: 1px solid var(--input-border);
		background: var(--panel-bg-2);
		color: var(--text);
		padding: 10px 14px;
		border-radius: 12px;
		font-size: 0.9rem;
		font-weight: 700;
		cursor: pointer;
		transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
	}

	.post-editor-wrap .file-button:hover,
	.post-editor-wrap .file-clear:hover {
		border-color: var(--primary);
		background: #1c2a42;
		transform: translateY(-1px);
	}

	.post-editor-wrap .file-clear.hidden {
		display: none;
	}

	.post-editor-wrap .file-input {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.post-editor-wrap .image-preview {
		display: none;
		align-items: flex-start;
		gap: 14px;
		padding: 12px;
		border: 1px solid var(--border);
		border-radius: 14px;
		background: rgba(17, 24, 39, 0.72);
	}

	.post-editor-wrap .image-preview.show {
		display: flex;
	}

	.post-editor-wrap .image-preview-thumb {
		width: 120px;
		height: 120px;
		border-radius: 12px;
		object-fit: cover;
		border: 1px solid var(--border);
		background: #0b1220;
		flex: 0 0 auto;
	}

	.post-editor-wrap .image-preview-meta {
		display: grid;
		gap: 6px;
		min-width: 0;
	}

	.post-editor-wrap .image-preview-name {
		font-size: 0.98rem;
		font-weight: 700;
		color: var(--text);
		word-break: break-word;
	}

	.post-editor-wrap .image-preview-note {
		font-size: 0.88rem;
		color: var(--muted);
		line-height: 1.45;
	}

	.post-editor-wrap .current-image-note {
		font-size: 0.88rem;
		color: var(--tag-text);
	}

	@media (max-width: 768px) {
		.post-editor-wrap .post-editor-card {
			padding: 14px;
			border-radius: 16px;
		}

		.post-editor-wrap {
			margin: 20px auto;
			padding: 0 12px;
		}

		.post-editor-wrap .header {
			font-size: 2rem;
			line-height: 1.2;
		}

		.post-editor-wrap .buttons {
			justify-content: stretch;
		}

		.post-editor-wrap input[type="submit"] {
			width: 100%;
		}

		.post-editor-wrap ul[data-name="model_ids"] {
			grid-template-columns: 1fr;
		}

		.post-editor-wrap .image-preview {
			flex-direction: column;
		}

		.post-editor-wrap .image-preview-thumb {
			width: 100%;
			height: auto;
			max-height: 240px;
		}
	}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 12px 16px;
  margin: 15px 0;
  border-radius: 6px;
}