.tvthm-wrapper {
	margin: 16px 0;
}

/* Thanh công cụ: Tabs + Ô tìm kiếm */
.tvthm-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.tvthm-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.tvthm-tab-btn {
	padding: 8px 18px;
	border: 1px solid #d1d5db;
	background: #ffffff;
	color: #111827;
	border-radius: 999px;
	cursor: pointer;
	font-weight: 600;
	font-size: 13.5px;
	transition: all 0.18s ease;
}

.tvthm-tab-btn:hover {
	border-color: #b91c1c;
	color: #b91c1c;
}

.tvthm-tab-btn.is-active {
	background: #b91c1c;
	border-color: #b91c1c;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(185, 28, 28, 0.22);
}

.tvthm-topic-summary {
	font-size: 14px;
	color: #475569;
}

.tvthm-topic-summary strong {
	color: #0f172a;
	font-weight: 700;
}

.tvthm-search-box {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 320px;
	margin-left: auto;
}

@media (max-width: 640px) {
	.tvthm-search-box {
		max-width: 100%;
	}
}

.tvthm-search-icon {
	position: absolute;
	left: 12px;
	color: #64748b;
	pointer-events: none;
}

.tvthm-search-input {
	width: 100% !important;
	padding: 8px 34px 8px 36px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 999px !important;
	background: #ffffff !important;
	color: #0f172a !important;
	font-size: 13.5px !important;
	line-height: 1.4 !important;
	outline: none !important;
	box-sizing: border-box !important;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tvthm-search-input:focus {
	border-color: #b91c1c !important;
	box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12) !important;
}

.tvthm-search-clear {
	position: absolute;
	right: 10px;
	border: none;
	background: #e2e8f0;
	color: #334155;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.tvthm-search-clear:hover {
	background: #b91c1c;
	color: #ffffff;
}

.tvthm-no-results {
	padding: 24px 16px;
	text-align: center;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	color: #64748b;
	font-size: 14px;
	margin-top: 12px;
}

.tvthm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 18px;
}

/* Thẻ Thành viên có dải màu phân nhóm + Avatar viền nổi + Chỉ số bài viết */
.tvthm-members-grid {
	align-items: stretch;
}

.tvthm-member-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #ffffff;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tvthm-member-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 26px rgba(15, 23, 42, 0.09);
}

.tvthm-member-card--brand:hover {
	border-color: #fca5a5;
	box-shadow: 0 12px 26px rgba(185, 28, 28, 0.11);
}

.tvthm-member-card--user:hover {
	border-color: #93c5fd;
	box-shadow: 0 12px 26px rgba(3, 105, 161, 0.10);
}

.tvthm-member-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.tvthm-member-cover {
	position: relative;
	height: 68px;
	padding: 10px 12px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 6px;
	flex-shrink: 0;
}

.tvthm-member-card--brand .tvthm-member-cover {
	background: linear-gradient(135deg, #881337 0%, #b91c1c 58%, #dc2626 100%);
	border-bottom: 2px solid #f59e0b;
}

.tvthm-member-card--user .tvthm-member-cover {
	background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 58%, #0284c7 100%);
	border-bottom: 2px solid #bae6fd;
}

.tvthm-member-rank {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	font-size: 10.5px;
	font-weight: 700;
	border-radius: 999px;
	background: #fef08a;
	color: #854d0e;
	line-height: 1.2;
}

.tvthm-member-group-pill {
	display: inline-flex;
	align-items: center;
	padding: 2px 9px;
	font-size: 10.5px;
	font-weight: 700;
	border-radius: 999px;
	line-height: 1.2;
	margin-left: auto;
	background: rgba(255, 255, 255, 0.22);
	color: #ffffff;
}

.tvthm-member-avatar-wrap {
	margin-top: -34px;
	padding: 0 16px;
	position: relative;
	z-index: 2;
}

.tvthm-member-avatar {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	object-fit: cover;
	background: #ffffff;
	border: 3px solid #ffffff;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
	display: block;
}

.tvthm-member-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 10px 16px 14px;
}

.tvthm-member-name {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.35;
	transition: color 0.18s ease;
}

.tvthm-member-card--brand:hover .tvthm-member-name {
	color: #b91c1c;
}

.tvthm-member-card--user:hover .tvthm-member-name {
	color: #0369a1;
}

.tvthm-member-bio {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.5;
	color: #475569;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tvthm-member-footer {
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.tvthm-member-meta {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	color: #475569;
}

.tvthm-member-meta strong {
	color: #0f172a;
	font-weight: 700;
}

.tvthm-member-cta {
	font-size: 12px;
	font-weight: 700;
	transition: transform 0.18s ease;
}

.tvthm-member-card--brand .tvthm-member-cta {
	color: #b91c1c;
}

.tvthm-member-card--user .tvthm-member-cta {
	color: #0369a1;
}

.tvthm-member-card:hover .tvthm-member-cta {
	transform: translateX(3px);
}

/* Card Chủ đề có Banner/Ảnh bìa + Huy hiệu + Thứ hạng sôi nổi */
.tvthm-topics-grid {
	align-items: stretch;
}

.tvthm-comm-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #ffffff;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tvthm-comm-card:hover {
	transform: translateY(-4px);
	border-color: #fca5a5;
	box-shadow: 0 12px 26px rgba(185, 28, 28, 0.10);
}

.tvthm-comm-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.tvthm-comm-banner {
	position: relative;
	height: 112px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.tvthm-comm-banner-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.tvthm-comm-card:hover .tvthm-comm-banner-img {
	transform: scale(1.06);
}

.tvthm-comm-banner-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.45) 100%);
}

.tvthm-comm-banner-initials {
	font-size: 30px;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	user-select: none;
}

.tvthm-comm-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	z-index: 2;
}

.tvthm-comm-pill {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	font-size: 10.5px;
	font-weight: 700;
	border-radius: 999px;
	line-height: 1.2;
	backdrop-filter: blur(4px);
}

.tvthm-comm-pill--hot {
	background: #fef08a;
	color: #854d0e;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

.tvthm-comm-pill--group {
	background: rgba(15, 23, 42, 0.72);
	color: #ffffff;
	margin-left: auto;
}

.tvthm-comm-pill--topic {
	background: rgba(255, 255, 255, 0.22);
	color: #ffffff;
	margin-left: auto;
}

.tvthm-comm-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 14px 16px;
}

.tvthm-comm-title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.35;
	transition: color 0.18s ease;
}

.tvthm-comm-card:hover .tvthm-comm-title {
	color: #b91c1c;
}

.tvthm-comm-desc {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.5;
	color: #475569;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tvthm-comm-footer {
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.tvthm-comm-count {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	color: #475569;
}

.tvthm-comm-count strong {
	color: #0f172a;
	font-weight: 700;
}

.tvthm-comm-cta {
	font-size: 12px;
	font-weight: 700;
	color: #b91c1c;
	transition: transform 0.18s ease;
}

.tvthm-comm-card:hover .tvthm-comm-cta {
	transform: translateX(3px);
}

.tvthm-badge {
	display: inline-block;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 999px;
	flex-shrink: 0;
	width: fit-content;
}

.tvthm-badge--brand {
	background: #fee2e2;
	color: #991b1b;
}

.tvthm-badge--user {
	background: #e0f2fe;
	color: #075985;
}

/* Card bài viết 2 cột thẳng hàng */
.tvthm-posts-list.tvthm-posts-grid-2col {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
}

@media (max-width: 640px) {
	.tvthm-posts-list.tvthm-posts-grid-2col {
		grid-template-columns: 1fr;
	}
}

.tvthm-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #ffffff;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	min-width: 0;
}

.tvthm-post-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.tvthm-post-card-cover {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f1f5f9;
	flex-shrink: 0;
}

.tvthm-post-card-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.tvthm-post-card:hover .tvthm-post-card-cover img {
	transform: scale(1.03);
}

.tvthm-post-card-noimg {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #94a3b8;
}

.tvthm-post-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 14px 16px 12px;
	min-width: 0;
}

.tvthm-post-card-cat-row {
	margin-bottom: 6px;
}

.tvthm-post-card-cat {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 700;
	color: #b91c1c;
	background: #fef2f2;
	padding: 2px 9px;
	border-radius: 999px;
	text-decoration: none;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tvthm-post-card-cat:hover {
	background: #fee2e2;
	text-decoration: none;
}

.tvthm-post-card-title {
	margin: 0 0 8px;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tvthm-post-card-title a {
	text-decoration: none;
	color: #0f172a;
}

.tvthm-post-card-title a:hover {
	color: #b91c1c;
}

.tvthm-post-card-excerpt {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.5;
	color: #4b5563;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tvthm-post-card-footer {
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.tvthm-post-card-author {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	color: #334155;
	min-width: 0;
	flex: 1;
}

.tvthm-post-card-author:hover {
	color: #b91c1c;
}

.tvthm-post-card-avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid #e2e8f0;
}

.tvthm-post-card-author-name {
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Phân trang */
.tvthm-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 22px;
	justify-content: center;
}

.tvthm-pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	text-decoration: none;
	color: #111827;
	font-size: 13px;
	font-weight: 600;
	background: #ffffff;
}

.tvthm-pagination .page-numbers.current,
.tvthm-pagination .page-numbers:hover {
	background: #b91c1c;
	border-color: #b91c1c;
	color: #ffffff;
}

/* Bảng danh sách dọc THÀNH VIÊN & CHỦ ĐỀ */
.tvthm-vlist-box {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.tvthm-vlist-header {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 10px 10px;
	background: linear-gradient(135deg, #881337 0%, #b91c1c 55%, #dc2626 100%);
	color: #ffffff;
	line-height: 1.2;
}

.tvthm-vlist-header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.16);
	color: #fef08a;
	flex-shrink: 0;
}

.tvthm-vlist-header-text {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	flex: 1;
	min-width: 0;
}

.tvthm-vlist-header-count {
	font-size: 11px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	flex-shrink: 0;
}

.tvthm-vlist-accent {
	height: 2px;
	background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
}

.tvthm-vlist-body {
	display: flex;
	flex-direction: column;
}

.tvthm-vlist-item {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px 14px;
	border-bottom: 1px solid #f1f5f9;
	text-decoration: none;
	color: #1e293b;
	transition: background-color 0.18s ease;
}

.tvthm-vlist-item:last-child {
	border-bottom: none;
}

.tvthm-vlist-item:hover {
	background-color: #fff5f5;
}

.tvthm-vlist-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid #e2e8f0;
}

.tvthm-vlist-icon-fallback {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fef2f2;
	color: #b91c1c;
	font-weight: 700;
	font-size: 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: 1px solid #fecaca;
}

.tvthm-vlist-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	min-width: 0;
	flex: 1;
}

.tvthm-vlist-title {
	font-size: 13.5px;
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.25;
}

.tvthm-vlist-item:hover .tvthm-vlist-title {
	color: #b91c1c;
}

.tvthm-vlist-meta-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.tvthm-vlist-sub {
	font-size: 11.5px;
	color: #64748b;
	line-height: 1.2;
}

.tvthm-vlist-footer {
	padding: 10px 14px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	text-align: center;
}

.tvthm-vlist-more-btn {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #b91c1c;
	font-size: 12.5px;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.18s ease;
}

.tvthm-vlist-more-btn:hover {
	background: #b91c1c;
	border-color: #b91c1c;
	color: #ffffff;
}


/* ==========================================================================
   PHẦN 1: TRANG CÁ NHÂN THÀNH VIÊN (THAY THẾ TRANG TÁC GIẢ MẶC ĐỊNH)
   ========================================================================== */
.tvthm-profile-page {
	padding: 20px 0 36px;
}

.tvthm-profile-container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 16px;
}

.tvthm-profile-hero {
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #ffffff;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
	margin-bottom: 28px;
}

.tvthm-profile-banner {
	height: 74px;
	padding: 10px 18px;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
}

.tvthm-profile-hero--brand .tvthm-profile-banner {
	background: linear-gradient(135deg, #881337 0%, #b91c1c 58%, #dc2626 100%);
	border-bottom: 3px solid #f59e0b;
}

.tvthm-profile-hero--user .tvthm-profile-banner {
	background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 58%, #0284c7 100%);
	border-bottom: 3px solid #bae6fd;
}

.tvthm-profile-banner-badges {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.tvthm-profile-group-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.22);
	color: #ffffff;
}

.tvthm-profile-rank-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	background: #fef08a;
	color: #854d0e;
}

.tvthm-profile-main {
	display: flex;
	align-items: flex-end;
	gap: 18px;
	padding: 0 22px 16px;
	margin-top: -38px;
}

@media (max-width: 640px) {
	.tvthm-profile-main {
		flex-direction: column;
		align-items: flex-start;
		padding: 0 16px 18px;
		gap: 12px;
	}
}

.tvthm-profile-avatar-col {
	flex-shrink: 0;
}

.tvthm-profile-avatar {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	object-fit: cover;
	background: #ffffff;
	border: 3px solid #ffffff;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
	display: block;
}

.tvthm-profile-info-col {
	flex: 1;
	min-width: 0;
	padding-top: 42px;
}

@media (max-width: 640px) {
	.tvthm-profile-info-col {
		padding-top: 0;
	}
}

.tvthm-profile-name {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.25;
}

.tvthm-profile-bio {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.55;
	color: #475569;
}

.tvthm-profile-stats {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.tvthm-profile-stat-item {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 8px 14px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tvthm-profile-stat-item strong {
	font-size: 16px;
	font-weight: 800;
	color: #0f172a;
}

.tvthm-profile-stat-item span {
	font-size: 12px;
	color: #64748b;
}

.tvthm-profile-topics-filter {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 12px 24px 16px;
	border-top: 1px solid #f1f5f9;
	background: #fcfcfd;
}

@media (max-width: 640px) {
	.tvthm-profile-topics-filter {
		padding: 12px 16px 14px;
	}
}

.tvthm-profile-filter-label {
	font-size: 12.5px;
	font-weight: 700;
	color: #475569;
	margin-right: 4px;
}

.tvthm-profile-topic-chip {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #334155;
	transition: all 0.16s ease;
}

.tvthm-profile-topic-chip:hover,
.tvthm-profile-topic-chip.is-active {
	background: #b91c1c;
	border-color: #b91c1c;
	color: #ffffff;
}

.tvthm-profile-section-title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}

.tvthm-profile-section-title span {
	color: #b91c1c;
}

.tvthm-profile-post-date {
	font-size: 12px;
	color: #64748b;
}

/* ==========================================================================
   PHẦN 2: HỘP THÔNG TIN THÀNH VIÊN (TÁC GIẢ) CUỐI MỖI BÀI VIẾT
   ========================================================================== */
.tvthm-single-author-box {
	margin-top: 28px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #ffffff;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.tvthm-single-author-box--brand {
	border-top: 3px solid #b91c1c;
}

.tvthm-single-author-box--user {
	border-top: 3px solid #0369a1;
}

.tvthm-single-author-top {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 20px;
}

@media (max-width: 600px) {
	.tvthm-single-author-top {
		flex-direction: column;
		padding: 16px;
		gap: 12px;
	}
}

.tvthm-single-author-avatar-link {
	flex-shrink: 0;
}

.tvthm-single-author-avatar {
	width: 66px;
	height: 66px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #e2e8f0;
	display: block;
}

.tvthm-single-author-info {
	flex: 1;
	min-width: 0;
}

.tvthm-single-author-head {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.tvthm-single-author-name {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	text-decoration: none;
}

.tvthm-single-author-name:hover {
	color: #b91c1c;
}

.tvthm-single-author-rank {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: #fef08a;
	color: #854d0e;
}

.tvthm-single-author-bio {
	margin: 0 0 10px;
	font-size: 13.5px;
	line-height: 1.5;
	color: #475569;
}

.tvthm-single-author-meta-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.tvthm-single-author-stat {
	font-size: 12.5px;
	color: #475569;
}

.tvthm-single-author-stat strong {
	color: #0f172a;
}

.tvthm-single-author-btn {
	font-size: 12.5px;
	font-weight: 700;
	color: #b91c1c;
	text-decoration: none;
}

.tvthm-single-author-btn:hover {
	text-decoration: underline;
}

.tvthm-single-author-more {
	padding: 14px 20px 16px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
}

.tvthm-single-author-more-title {
	font-size: 13px;
	color: #334155;
	margin-bottom: 8px;
}

.tvthm-single-author-more-list {
	margin: 0;
	padding-left: 18px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.tvthm-single-author-more-list a {
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
	text-decoration: none;
}

.tvthm-single-author-more-list a:hover {
	color: #b91c1c;
	text-decoration: underline;
}


/* Lưới 3 cột trên trang cá nhân thành viên */
.tvthm-posts-list.tvthm-posts-grid-3col {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
}

@media (max-width: 960px) {
	.tvthm-posts-list.tvthm-posts-grid-3col {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.tvthm-posts-list.tvthm-posts-grid-3col {
		grid-template-columns: 1fr;
	}
}

/* Hiển thị thành viên/tác giả đồng bộ ngay khu vực meta đầu bài viết */
.tvthm-inline-author {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	vertical-align: middle;
	font-weight: 600;
}

.tvthm-inline-author-avatar {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #e2e8f0;
	flex-shrink: 0;
}

.tvthm-inline-badge {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.3;
}

.tvthm-inline-badge--brand {
	background: #fee2e2;
	color: #991b1b;
}

.tvthm-inline-badge--user {
	background: #e0f2fe;
	color: #075985;
}


/* ==========================================================================
   THANH TÌM KIẾM BÀI VIẾT & TÙY CHỌN SỐ CỘT ([tvthm_posts])
   ========================================================================== */
.tvthm-posts-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.tvthm-posts-search-form {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	flex: 1;
	min-width: 0;
}

.tvthm-posts-group-pills {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.tvthm-posts-group-pills .tvthm-tab-btn {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}

.tvthm-posts-search-group {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 240px;
	max-width: 440px;
}

.tvthm-posts-search-box {
	max-width: none !important;
	margin-left: 0 !important;
	flex: 1;
}

.tvthm-posts-search-box .tvthm-search-clear {
	text-decoration: none;
}

.tvthm-posts-search-btn {
	padding: 8px 16px;
	border: 1px solid #b91c1c;
	background: #b91c1c;
	color: #ffffff;
	font-size: 13.5px;
	font-weight: 600;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.tvthm-posts-search-btn:hover {
	background: #991b1b;
	border-color: #991b1b;
	box-shadow: 0 4px 12px rgba(185, 28, 28, 0.22);
}

.tvthm-cols-switcher {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 4px 6px;
	border-radius: 999px;
	margin-left: auto;
}

.tvthm-cols-label {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	padding-left: 6px;
}

.tvthm-col-btn {
	padding: 5px 11px;
	border: none;
	background: transparent;
	color: #334155;
	font-size: 12.5px;
	font-weight: 600;
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.16s ease;
}

.tvthm-col-btn:hover {
	color: #b91c1c;
}

.tvthm-col-btn.is-active {
	background: #b91c1c;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(185, 28, 28, 0.24);
}

.tvthm-posts-search-status {
	font-size: 13.5px;
	color: #475569;
	background: #fef2f2;
	border: 1px solid #fecaca;
	padding: 8px 14px;
	border-radius: 10px;
	margin-bottom: 16px;
}

.tvthm-posts-search-status strong {
	color: #991b1b;
}

/* Lưới bài viết tùy biến 1, 2, 3, 4 cột */
.tvthm-posts-list.tvthm-posts-cols-1 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.tvthm-posts-list.tvthm-posts-cols-1 .tvthm-post-card {
	flex-direction: row;
	align-items: stretch;
}

.tvthm-posts-list.tvthm-posts-cols-1 .tvthm-post-card-cover {
	width: 280px;
	aspect-ratio: 16 / 10;
}

@media (max-width: 640px) {
	.tvthm-posts-list.tvthm-posts-cols-1 .tvthm-post-card {
		flex-direction: column;
	}
	.tvthm-posts-list.tvthm-posts-cols-1 .tvthm-post-card-cover {
		width: 100%;
	}
}

.tvthm-posts-list.tvthm-posts-cols-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
}

@media (max-width: 640px) {
	.tvthm-posts-list.tvthm-posts-cols-2 {
		grid-template-columns: 1fr;
	}
}

.tvthm-posts-list.tvthm-posts-cols-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
}

@media (max-width: 960px) {
	.tvthm-posts-list.tvthm-posts-cols-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.tvthm-posts-list.tvthm-posts-cols-3 {
		grid-template-columns: 1fr;
	}
}

.tvthm-posts-list.tvthm-posts-cols-4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

@media (max-width: 1100px) {
	.tvthm-posts-list.tvthm-posts-cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.tvthm-posts-list.tvthm-posts-cols-4 {
		grid-template-columns: 1fr;
	}
}


/* ==========================================================================
   FIX MOBILE TOOLBAR CHO [tvthm_posts] (v2.0.1)
   ========================================================================== */
@media (max-width: 767px) {
	.tvthm-posts-toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.tvthm-posts-search-form {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		width: 100%;
	}

	.tvthm-posts-group-pills {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		width: 100%;
	}

	.tvthm-posts-group-pills .tvthm-tab-btn {
		justify-content: center;
		padding: 7px 10px;
		font-size: 12.5px;
		white-space: nowrap;
		width: 100%;
		box-sizing: border-box;
	}

	.tvthm-posts-search-group {
		max-width: none !important;
		min-width: 0 !important;
		width: 100%;
		gap: 8px;
	}

	.tvthm-posts-search-box {
		min-width: 0 !important;
		flex: 1;
	}

	.tvthm-posts-search-input {
		padding: 8px 30px 8px 34px !important;
		font-size: 13px !important;
	}

	.tvthm-posts-search-btn {
		padding: 8px 14px;
		font-size: 12.5px;
		flex-shrink: 0;
	}

	.tvthm-cols-switcher {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		margin-left: 0 !important;
		box-sizing: border-box;
		padding: 5px 8px;
	}

	.tvthm-col-btn {
		flex: 1;
		text-align: center;
		padding: 6px 8px;
		font-size: 12px;
		white-space: nowrap;
	}
}


/* ==========================================================================
   NÚT CHUNG "TÙY CHỌN HIỂN THỊ" SỔ XUỐNG ([tvthm_posts] v2.1.0)
   ========================================================================== */
.tvthm-display-options-bar {
	margin-bottom: 18px;
}

.tvthm-options-toggle-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 11px 16px;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	background: #ffffff;
	color: #0f172a;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	transition: all 0.18s ease;
	box-sizing: border-box;
}

.tvthm-options-toggle-btn:hover {
	border-color: #b91c1c;
	color: #b91c1c;
	background: #fffafa;
}

.tvthm-options-toggle-btn.is-open {
	border-color: #b91c1c;
	background: #fef2f2;
	color: #991b1b;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.tvthm-options-toggle-left {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.tvthm-options-toggle-right {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.tvthm-options-active-tag {
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	background: #b91c1c;
	color: #ffffff;
}

.tvthm-options-chevron {
	font-size: 14px;
	line-height: 1;
	transition: transform 0.2s ease;
}

.tvthm-options-toggle-btn.is-open .tvthm-options-chevron {
	transform: rotate(180deg);
}

.tvthm-options-panel {
	border: 1px solid #fecaca;
	border-top: none;
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
	background: #ffffff;
	padding: 16px;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
	box-sizing: border-box;
}

.tvthm-options-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tvthm-option-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding-bottom: 12px;
	border-bottom: 1px solid #f1f5f9;
}

.tvthm-option-label {
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	display: block;
	margin-bottom: 6px;
}

.tvthm-option-row .tvthm-option-label {
	margin-bottom: 0;
}

.tvthm-option-row .tvthm-cols-switcher {
	margin-left: 0;
}

.tvthm-option-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

@media (max-width: 767px) {
	.tvthm-option-grid-2 {
		grid-template-columns: 1fr;
	}

	.tvthm-option-row {
		flex-direction: column;
		align-items: stretch;
	}

	.tvthm-option-row .tvthm-posts-group-pills {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
		width: 100%;
	}

	.tvthm-option-row .tvthm-posts-group-pills .tvthm-tab-btn {
		justify-content: center;
		padding: 7px 6px;
		font-size: 12px;
		width: 100%;
		box-sizing: border-box;
	}

	.tvthm-option-row .tvthm-cols-switcher {
		width: 100%;
		justify-content: space-between;
		box-sizing: border-box;
	}

	.tvthm-option-row .tvthm-col-btn {
		flex: 1;
		text-align: center;
	}
}

.tvthm-option-field {
	min-width: 0;
}

.tvthm-topic-suggestions {
	margin-top: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tvthm-topic-suggest-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
	transition: all 0.15s ease;
}

.tvthm-topic-suggest-chip:hover {
	background: #b91c1c;
	border-color: #b91c1c;
	color: #ffffff;
}

.tvthm-option-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 4px;
}

.tvthm-reset-filters-link {
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	text-decoration: none;
}

.tvthm-reset-filters-link:hover {
	color: #b91c1c;
	text-decoration: underline;
}


/* ==========================================================================
   ĐĂNG KÝ / ĐĂNG NHẬP / NÚT TÀI KHOẢN / CHỈNH SỬA HỒ SƠ (v2.2.0)
   ========================================================================== */
.tvthm-auth-card {
	max-width: 520px;
	margin: 20px auto;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 22px 24px;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
	box-sizing: border-box;
}

.tvthm-auth-header {
	margin-bottom: 16px;
}

.tvthm-auth-title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
}

.tvthm-auth-subtitle {
	margin: 0;
	font-size: 13px;
	color: #475569;
	line-height: 1.45;
}

.tvthm-auth-alert {
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.5;
	margin-bottom: 14px;
}

.tvthm-auth-alert--success {
	background: #dcfce7;
	border: 1px solid #86efac;
	color: #166534;
}

.tvthm-auth-alert--warning {
	background: #fef3c7;
	border: 1px solid #fcd34d;
	color: #92400e;
}

.tvthm-auth-alert--error {
	background: #fee2e2;
	border: 1px solid #fca5a5;
	color: #991b1b;
}

.tvthm-auth-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tvthm-auth-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tvthm-auth-label {
	font-size: 13px;
	font-weight: 700;
	color: #334155;
}

.tvthm-auth-input,
.tvthm-auth-textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 9px;
	font-size: 13.5px;
	color: #0f172a;
	background: #ffffff;
	box-sizing: border-box;
}

.tvthm-auth-input:focus,
.tvthm-auth-textarea:focus {
	outline: none;
	border-color: #b91c1c;
	box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.tvthm-auth-group-selector {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

@media (max-width: 520px) {
	.tvthm-auth-group-selector {
		grid-template-columns: 1fr;
	}
}

.tvthm-auth-radio-card {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #f8fafc;
	cursor: pointer;
}

.tvthm-auth-radio-card strong {
	display: block;
	font-size: 13px;
	color: #0f172a;
}

.tvthm-auth-radio-card small {
	display: block;
	font-size: 11.5px;
	color: #64748b;
	margin-top: 2px;
}

.tvthm-auth-row-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 12.5px;
}

.tvthm-auth-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #475569;
	cursor: pointer;
}

.tvthm-auth-link-muted {
	color: #64748b;
	text-decoration: none;
}

.tvthm-auth-link-muted:hover {
	color: #b91c1c;
	text-decoration: underline;
}

.tvthm-auth-submit-btn {
	width: 100%;
	padding: 10px 16px;
	border: none;
	border-radius: 999px;
	background: #b91c1c;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.18s ease;
}

.tvthm-auth-submit-btn:hover {
	background: #991b1b;
}

.tvthm-auth-footer-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 13px;
	color: #475569;
}

.tvthm-auth-footer-links a {
	font-weight: 700;
	color: #b91c1c;
	text-decoration: none;
}

.tvthm-auth-footer-links a:hover {
	text-decoration: underline;
}

.tvthm-auth-logged-note {
	margin: 0;
	font-size: 13.5px;
	color: #334155;
	line-height: 1.5;
}

/* Nút tài khoản trên Header */
.tvthm-account-bar {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.tvthm-acc-btn {
	display: inline-flex;
	align-items: center;
	padding: 6px 13px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.16s ease;
	line-height: 1.2;
}

.tvthm-acc-btn--login {
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #0f172a;
}

.tvthm-acc-btn--login:hover {
	border-color: #b91c1c;
	color: #b91c1c;
}

.tvthm-acc-btn--register {
	border: 1px solid #b91c1c;
	background: #b91c1c;
	color: #ffffff;
}

.tvthm-acc-btn--register:hover {
	background: #991b1b;
	border-color: #991b1b;
}

.tvthm-acc-btn--ghost,
.tvthm-acc-btn--logout {
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #475569;
}

.tvthm-acc-btn--logout:hover {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #991b1b;
}

.tvthm-acc-profile-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	color: #0f172a;
	font-size: 13px;
	font-weight: 700;
}

.tvthm-acc-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #cbd5e1;
}


/* ==========================================================================
   POPUP ĐĂNG NHẬP / ĐĂNG KÝ ĐỒNG BỘ THIẾT KẾ PLUGIN (v2.2.1)
   ========================================================================== */
.tvthm-auth-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.58);
	backdrop-filter: blur(3px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.tvthm-auth-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 500px;
	max-height: 90vh;
	overflow-y: auto;
	background: #ffffff;
	border-radius: 16px;
	padding: 20px 22px 24px;
	box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
	border: 1px solid #e2e8f0;
	box-sizing: border-box;
}

.tvthm-auth-modal-dialog .tvthm-auth-card {
	max-width: none;
	margin: 0;
	padding: 0;
	border: none;
	box-shadow: none;
}

.tvthm-auth-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #334155;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tvthm-auth-modal-close:hover {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #991b1b;
}

.tvthm-auth-modal-tabs {
	display: inline-flex;
	gap: 6px;
	background: #f1f5f9;
	padding: 4px;
	border-radius: 999px;
	margin-bottom: 16px;
}

.tvthm-auth-modal-tab {
	padding: 6px 16px;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: #475569;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.16s ease;
}

.tvthm-auth-modal-tab.is-active {
	background: #b91c1c;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(185, 28, 28, 0.22);
}


/* ==========================================================================
   MENU SỔ XUỐNG KHI BẤM TÊN THÀNH VIÊN ĐÃ ĐĂNG NHẬP (v2.2.2)
   ========================================================================== */
.tvthm-account-bar--logged {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.tvthm-acc-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px 5px 6px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #ffffff;
	color: #0f172a;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.16s ease;
	line-height: 1.2;
}

.tvthm-acc-trigger:hover,
.tvthm-acc-trigger.is-open {
	border-color: #b91c1c;
	background: #fffafa;
	color: #b91c1c;
}

.tvthm-acc-caret {
	font-size: 12px;
	color: #64748b;
	transition: transform 0.18s ease;
}

.tvthm-acc-trigger.is-open .tvthm-acc-caret {
	transform: rotate(180deg);
	color: #b91c1c;
}

.tvthm-acc-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 210px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 6px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
	display: flex;
	flex-direction: column;
	gap: 2px;
	z-index: 9999;
	box-sizing: border-box;
}

.tvthm-acc-dropdown-item {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}

.tvthm-acc-dropdown-item:hover {
	background: #fef2f2;
	color: #b91c1c;
	text-decoration: none;
}

.tvthm-acc-dropdown-item--danger {
	color: #b91c1c;
}

.tvthm-acc-dropdown-item--danger:hover {
	background: #fee2e2;
	color: #991b1b;
}

.tvthm-acc-dropdown-divider {
	height: 1px;
	background: #f1f5f9;
	margin: 4px 6px;
}
