/*!
 * Soicau — main.css
 * © 2026 pickles.soicau
 */

:root {
	--soicau-accent: #d92121;
	--soicau-text: #1f1f1f;
	--soicau-muted: #6b7280;
	--soicau-bg: #ffffff;
	--soicau-border: #e5e7eb;
	--soicau-danger: #dc2626;
	--soicau-success: #16a34a;
	--soicau-warning: #f59e0b;
	--soicau-info: #2563eb;
	--soicau-max: 860px;

	--color-primary:        var(--soicau-accent);
	--color-primary-dark:   #a31818;
	--color-primary-bg:     color-mix(in srgb, var(--color-primary) 10%, #fff);
	--color-primary-tint:   color-mix(in srgb, var(--color-primary) 6%, transparent);
	--color-text:           var(--soicau-text);
	--color-muted:          var(--soicau-muted);
	--color-text-muted:     var(--soicau-muted);
	--color-text-inverse:   #ffffff;
	--color-link:           var(--soicau-accent);
	--color-link-hover:     #a31818;
	--color-bg:             var(--soicau-bg);
	--color-bg-alt:         #f7f7f8;
	--color-surface:        #ffffff;
	--color-border:         var(--soicau-border);

	--font-sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--radius:    0;
	--radius-sm: 0;
	--shadow-sm: 0 1px 2px rgba(0,0,0,.06);
	--shadow-md: 0 4px 12px rgba(0,0,0,.08);

	--tk-primary:        var(--color-primary);
	--tk-primary-dark:   var(--color-primary-dark);
	--tk-primary-bg:     color-mix(in srgb, var(--color-primary) 8%, #fff);
	--tk-danger:         #dc2626;
	--tk-text:           var(--color-text);
	--tk-text-muted:     var(--color-text-muted);
	--tk-text-inverse:   var(--color-text-inverse);
	--tk-bg:             var(--color-surface);
	--tk-bg-alt:         var(--color-bg-alt);
	--tk-border:         #dee2e6;
	--tk-font-base:      16px;
	--tk-font-sm:        14px;
	--tk-font-xs:        12px;
	--tk-radius-sm:      var(--radius-sm);
	--tk-gap:            12px;
	--tk-gap-sm:         8px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--soicau-text);
	background: var(--soicau-bg);
	line-height: 1.6;
}

body.bg-pattern-dots {
	background-color: var(--soicau-bg);
	background-image: radial-gradient(var(--soicau-border) 1px, transparent 1px);
	background-size: 20px 20px;
}

body.bg-pattern-grid {
	background-color: var(--soicau-bg);
	background-image:
		linear-gradient(to right, var(--soicau-border) 1px, transparent 1px),
		linear-gradient(to bottom, var(--soicau-border) 1px, transparent 1px);
	background-size: 32px 32px;
}

body.bg-pattern-diagonal {
	background-color: var(--soicau-bg);
	background-image: repeating-linear-gradient(
		45deg,
		var(--soicau-border) 0,
		var(--soicau-border) 1px,
		transparent 1px,
		transparent 12px
	);
}

body.bg-pattern-paper {
	background-color: var(--soicau-bg);
	background-image:
		radial-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
		radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
	background-size: 5px 5px, 9px 9px;
	background-position: 0 0, 3px 4px;
}

body.bg-pattern-checker {
	background-color: var(--soicau-bg);
	background-image:
		linear-gradient(45deg, var(--color-bg-alt, #f7f7f8) 25%, transparent 25%),
		linear-gradient(-45deg, var(--color-bg-alt, #f7f7f8) 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, var(--color-bg-alt, #f7f7f8) 75%),
		linear-gradient(-45deg, transparent 75%, var(--color-bg-alt, #f7f7f8) 75%);
	background-size: 28px 28px;
	background-position: 0 0, 0 14px, 14px -14px, -14px 0;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--soicau-accent);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	margin: 1.4em 0 0.5em;
	line-height: 1.3;
	font-weight: 700;
	color: var(--soicau-text);
}

h1:first-child, h2:first-child, h3:first-child,
h4:first-child, h5:first-child, h6:first-child {
	margin-top: 0;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.9375rem; }
h6 { font-size: 0.875rem; }

#page {
	max-width: var(--soicau-max);
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.container {

	margin: 0 auto;
	padding: 0 16px;
}

@media (max-width: 480px) {
	.container {
		padding: 0 12px;
	}
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #000;
	color: #fff;
	padding: 8px 16px;
	z-index: 100;
}

.skip-link:focus {
	left: 0;
}

/* Header */
.site-header {
	border-bottom: 0;
	padding: 0;
}

.header-container {
	padding: 0;
}

.header-banner {
	position: relative;
	line-height: 0;
}

.header-banner-img {
	display: block;
	width: 100%;
	height: auto;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 16px;
	text-align: center;
	line-height: 1.5;
}

.header-banner.has-banner .header-inner {
	position: absolute;
	inset: 0;
	padding: 12px 16px;
}

/* Banner overlay icons (mobile) */
.header-icon {
	display: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.header-icon-menu  { left: 8px; }
.header-icon-search { right: 8px; }

.header-icon i {
	font-size: 20px;
	line-height: 1;
}

.header-search {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 14vh 16px 0;
	background: rgba(0, 0, 0, 0.88);
	animation: soicauFadeIn .15s ease-out;
}

.header-search[hidden] {
	display: none;
}

.header-search-close {
	position: fixed;
	top: 14px;
	right: 18px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	opacity: .85;
	transition: opacity .15s;
}

.header-search-close:hover { opacity: 1; }

.header-search-form {
	display: flex;
	width: 100%;
	max-width: 720px;
	margin: 0;
	animation: soicauPopIn .2s ease-out;
}

.header-search-form .search-field {
	flex: 1;
	min-width: 0;
	padding: 14px 18px;
	font-size: 16px;
	border: 0;
	background: #fff;
	color: #111;
	outline: none;
}

.header-search-form .search-field::placeholder {
	color: #888;
}

.header-search-form .search-submit {
	width: 56px;
	border: 0;
	background: var(--soicau-accent);
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.header-search-form .search-submit:hover {
	filter: brightness(.92);
}

@keyframes soicauFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes soicauPopIn {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
	.header-search { padding-top: 10vh; }
	.header-search-form .search-field { padding: 12px 14px; font-size: 15px; }
	.header-search-form .search-submit { width: 48px; font-size: 16px; }
}

.site-branding {
	position: relative;
	z-index: 2;
}

.header-banner .custom-logo {
	max-height: 75px;
	width: auto;
	height: auto;
	margin: 0 auto;
}

.site-title,
.site-title a {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--soicau-text);
}

.header-banner.has-banner .site-title a {
	color: #fff;
	text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

.site-description {
	margin: 0;
	color: var(--soicau-muted);
	font-size: 0.875rem;
}

.header-banner.has-banner .site-description {
	color: #fff;
	text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

/* Navigation */
.main-navigation {
	background: var(--soicau-accent);
	font-family: Tahoma, Geneva, sans-serif;
}

.nav-inner {
	display: flex;
	align-items: center;
}

.main-navigation ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

.main-navigation > .nav-inner > ul,
.main-navigation #primary-menu {
	flex-wrap: wrap;
}

.main-navigation #primary-menu > li {
	position: relative;
}

.main-navigation #primary-menu > li + li {
	border-left: 1px solid rgba(255,255,255,.15);
}

.main-navigation a {
	color: #fff;
	padding: 12px 16px;
	display: inline-block;
	position: relative;
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	transition: background .15s, color .15s;
}

@media (min-width: 769px) {
	.main-navigation #primary-menu > li.current-menu-item > a,
	.main-navigation #primary-menu > li.current_page_item > a,
	.main-navigation #primary-menu > li.current-menu-ancestor > a {
		padding-bottom: 17px;
		margin-bottom: -5px;
	}

	.main-navigation #primary-menu > li.current-menu-item > a::before,
	.main-navigation #primary-menu > li.current_page_item > a::before,
	.main-navigation #primary-menu > li.current-menu-ancestor > a::before {
		content: "";
		position: absolute;
		bottom: 7px;
		left: 50%;
		transform: translateX(-50%);
		width: 22px;
		height: 2px;
		background: #000;
		border-radius: 2px;
	}

	.main-navigation #primary-menu > li.menu-item-has-children > a {
		padding-right: 26px;
	}

	.main-navigation #primary-menu > li.menu-item-has-children > a::after {
		content: "";
		position: absolute;
		top: 50%;
		right: 12px;
		width: 6px;
		height: 6px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-70%) rotate(45deg);
		transition: transform .2s;
	}

	.main-navigation #primary-menu > li.menu-item-has-children:hover > a::after {
		transform: translateY(-30%) rotate(-135deg);
	}

	.main-navigation #primary-menu .sub-menu li.menu-item-has-children > a {
		padding-right: 26px;
	}

	.main-navigation #primary-menu .sub-menu li.menu-item-has-children > a::after {
		content: "";
		position: absolute;
		top: 50%;
		right: 14px;
		width: 6px;
		height: 6px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-70%) rotate(-45deg);
	}
}

.main-navigation #primary-menu > li:hover > a,
.main-navigation #primary-menu > li.current-menu-item > a,
.main-navigation #primary-menu > li.current_page_item > a,
.main-navigation #primary-menu > li.current-menu-ancestor > a {
	background: #ffeb00;
	color: #000;
}

.main-navigation #primary-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	flex-direction: column;
	background: #fff;
	min-width: 200px;
	padding: 0;
	margin: 0;
	z-index: 100;
	box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

@media (min-width: 769px) {
	.main-navigation #primary-menu li:hover > .sub-menu {
		display: flex;
	}
}

.main-navigation #primary-menu .sub-menu li {
	width: 100%;
	border-top: 1px solid #eee;
}

.main-navigation #primary-menu .sub-menu li:first-child {
	border-top: 0;
}

.main-navigation #primary-menu .sub-menu a {
	display: block;
	padding: 10px 14px;
	color: #333;
}

.main-navigation #primary-menu .sub-menu li:hover > a {
	background: #ffeb00;
	color: #000;
}

.menu-toggle {
	display: none;
	background: transparent;
	border: 1px solid rgba(255,255,255,.4);
	border-radius: 4px;
	padding: 8px 12px;
	cursor: pointer;
	margin: 6px 0;
}

.menu-toggle-bar,
.menu-toggle-bar::before,
.menu-toggle-bar::after {
	display: block;
	width: 20px;
	height: 2px;
	background: #fff;
	position: relative;
}

.menu-toggle-bar::before,
.menu-toggle-bar::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle-bar::before { top: -6px; }
.menu-toggle-bar::after  { top: 6px; }

.header-clock {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 12px;
	background: #fff;
	border-bottom: 1px solid var(--soicau-border);
	color: var(--soicau-text);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.header-clock-time {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 0 1 auto;
	min-width: 0;
}

.header-clock-time:only-child {
	margin: 0 auto;
}

.header-clock-img {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.header-clock time {
	font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
	.header-clock-label { display: none; }
}

/* ----- Header account (login/register/account dropdown) ----- */
.header-account {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

.header-account-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--soicau-accent, #e40000);
	background: #fff;
	border: 1px solid var(--soicau-accent, #e40000);
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, color .15s;
}

.header-account-btn:hover {
	background: var(--soicau-accent, #e40000);
	color: #fff;
	text-decoration: none;
}

.header-account-btn--primary {
	background: var(--soicau-accent, #e40000);
	color: #fff;
}

.header-account-btn--primary:hover {
	filter: brightness(.92);
	color: #fff;
}

.header-account-btn i {
	font-size: 12px;
}

.header-account-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px 3px 4px;
	background: transparent;
	border: 1px solid transparent;
	color: var(--soicau-text);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}

.header-account-toggle:hover,
.header-account.is-open .header-account-toggle {
	background: #f3f4f6;
	border-color: var(--soicau-border);
}

.header-account-avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--soicau-border);
	flex: 0 0 auto;
}

.header-account-name {
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.header-account-name.is-admin { color: #b91c1c; }
.header-account-name.is-vip   { color: #b45309; }

.header-account-badge {
	background: #ef4444;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	border-radius: 999px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.header-account-badge--inline { margin-left: auto; }

.header-account-caret {
	font-size: 10px;
	color: #6b7280;
	transition: transform .15s;
}

.header-account.is-open .header-account-caret {
	transform: rotate(180deg);
}

.header-account-menu {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid var(--soicau-border);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .15s, transform .15s, visibility .15s;
	z-index: 60;
}

.header-account.is-open .header-account-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.header-account-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 14px;
	color: var(--soicau-text);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: background .15s, color .15s;
}

.header-account-item i {
	width: 16px;
	font-size: 13px;
	color: #6b7280;
}

.header-account-item:hover {
	background: #f3f4f6;
	color: var(--soicau-accent, #e40000);
	text-decoration: none;
}

.header-account-item:hover i {
	color: var(--soicau-accent, #e40000);
}

@media (max-width: 480px) {
	.header-account-btn span { display: none; }
	.header-account-btn { padding: 4px 8px; }
	.header-account-name { max-width: 80px; font-size: 12px; }
}

.ads-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 6px 12px;
	background: #fff;
	border-bottom: 1px solid var(--soicau-border);
	font-size: xx-small;
	line-height: 1.4;
}

.ads-bar-link {
	color: var(--soicau-muted);
	text-decoration: none;
	font-weight: 400;
}

.ads-bar-link:hover {
	color: var(--soicau-accent);
	text-decoration: underline;
}

.ads-bar-sep {
	color: var(--soicau-muted);
}

.ads-bar-link.is-hidden,
.ads-bar-sep.is-hidden {
	opacity: 0.05;
}

.ads-bar--home,
.ads-bar--footer {
	border-top: 1px solid var(--soicau-border);
}

.ads-bar--footer + .site-footer {
	margin-top: 0;
}

.ads-banner-region {
	z-index: 50;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.ads-banner-region--header,
.ads-banner-region--footer {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
}

.ads-banner-region--header { top: 0; }
.ads-banner-region--footer { bottom: 0; }

.ads-banner-region--home {
	position: relative;
	width: 100%;
	margin: 0 0 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--soicau-border);
	align-items: stretch;
}

.ads-banner-region--home .ads-banner {
	width: 100%;
	max-width: 100%;
}

.ads-banner-region--home .ads-banner img {
	width: 100%;
	height: auto;
}

.ads-banner-region--home .ads-banner-close {
	top: 4px;
	right: 4px;
}

.ads-banner {
	position: relative;
	width: 600px;
	max-width: 96vw;
}

.ads-banner-link,
.ads-banner > img {
	display: block;
}

.ads-banner img {
	display: block;
	width: 100%;
	height: auto;
}

.ads-banner-close {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 16px;
	line-height: 24px;
	text-align: center;
	cursor: pointer;
	z-index: 1;
}

.ads-banner-region--header .ads-banner-close {
	top: auto;
	bottom: -10px;
}

.ads-banner-close:hover {
	background: #000;
}

@media (max-width: 600px) {
	.ads-banner--desktop-only { display: none; }

	.ads-banner-region:not(:has(.ads-banner:not(.ads-banner--desktop-only))) {
		display: none;
	}
}
@media (min-width: 601px) {
	.ads-banner--mobile-only { display: none; }

	.ads-banner-region:not(:has(.ads-banner:not(.ads-banner--mobile-only))) {
		display: none;
	}
}

@media (max-width: 600px) {
	.ads-banner-region--header,
	.ads-banner-region--footer {
		left: 0;
		right: 0;
		transform: none;
		width: 100vw;
	}
	.ads-banner-region--header .ads-banner,
	.ads-banner-region--footer .ads-banner {
		max-width: 100vw;
	}
	.ads-banner-region--header img,
	.ads-banner-region--footer img {
		max-height: 30vh;
		object-fit: contain;
		background: #000;
	}
	.ads-banner-close {
		top: 4px;
		right: 4px;
	}
	.ads-banner-region--header .ads-banner-close {
		top: auto;
		bottom: 4px;
	}
}

/* Tablet */
@media (max-width: 991px) {
	.header-banner .custom-logo { max-height: 60px; }
	.main-navigation a { padding: 10px 12px; font-size: 13px; }
}

.nav-drawer { display: none; }
.nav-search { display: none; }

/* Mobile */
@media (max-width: 768px) {
	.header-banner.has-banner .header-inner { padding: 8px 56px; }
	.header-banner .custom-logo { max-height: 50px; }
	.site-title, .site-title a { font-size: 1.125rem; }
	.site-description { font-size: 0.75rem; }

	.header-banner.is-responsive .header-banner-img {
		height: 96px;
		object-fit: cover;
		object-position: center;
	}

	.header-icon { display: inline-flex; }

	.main-navigation {
		position: fixed;
		inset: 0;
		z-index: 1100;
		background: rgba(0, 0, 0, 0);
		visibility: hidden;
		pointer-events: none;
		transition: background-color .25s ease, visibility 0s linear .25s;
		font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	}

	.main-navigation.is-open {
		background: rgba(0, 0, 0, 0.35);
		visibility: visible;
		pointer-events: auto;
		transition: background-color .25s ease;
	}

	.nav-inner {
		position: absolute;
		top: 0;
		left: 0;
		height: 100%;
		width: 100%;
		max-width: 100vw;
		background: #ffffff;
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		padding: 0;
		margin: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		transform: translateX(-100%);
		transition: transform .25s ease;
		box-shadow: 2px 0 14px rgba(0, 0, 0, 0.18);
	}

	.main-navigation.is-open .nav-inner {
		transform: translateX(0);
	}

	.main-navigation > .nav-inner > .menu-toggle { display: none; }

	/* Drawer header (domain + close button) */
	.nav-drawer {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		padding: 0 48px;
		background: transparent;
		border-bottom: 1px solid var(--soicau-border);
		flex-shrink: 0;
	}

	.main-navigation a.nav-domain {
		font-weight: 700;
		font-size: 1rem;
		color: var(--soicau-accent);
		text-decoration: none;
		text-transform: uppercase;
		letter-spacing: 0.2px;
		padding: 0;
		line-height: 1.2;
	}

	.main-navigation a.nav-domain:hover,
	.main-navigation a.nav-domain:focus { color: var(--soicau-accent); text-decoration: underline; }

	.nav-close {
		position: absolute;
		top: 50%;
		right: 8px;
		transform: translateY(-50%);
		width: 36px;
		height: 36px;
		border: 0;
		background: transparent;
		color: #333;
		font-size: 22px;
		line-height: 1;
		cursor: pointer;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0;
	}

	.nav-close:hover { color: var(--soicau-accent); }

	/* Search box inside drawer */
	.nav-search {
		display: flex;
		align-items: stretch;
		padding: 14px 16px;
		background: #ffffff;
		border-bottom: 1px solid var(--soicau-border);
		flex-shrink: 0;
		position: relative;
	}

	.nav-search .search-field {
		flex: 1;
		min-width: 0;
		height: 40px;
		padding: 0 44px 0 18px;
		font-size: 14px;
		color: var(--soicau-text);
		background: #f4f6f9;
		border: 1px solid transparent;
		border-radius: 999px;
		outline: none;
		-webkit-appearance: none;
		appearance: none;
		transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
	}

	.nav-search .search-field::placeholder {
		color: #9aa3ad;
	}

	.nav-search .search-field:focus {
		border-color: var(--soicau-accent);
		background: #ffffff;
		box-shadow: 0 0 0 3px color-mix(in srgb, var(--soicau-accent) 12%, transparent);
	}

	.nav-search .search-submit {
		position: absolute;
		top: 50%;
		right: 20px;
		transform: translateY(-50%);
		width: 32px;
		height: 32px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border: 0;
		border-radius: 50%;
		background: var(--soicau-accent);
		color: #ffffff;
		font-size: 13px;
		cursor: pointer;
		padding: 0;
		transition: background-color .15s ease, transform .15s ease;
	}

	.nav-search .search-submit:hover {
		background: #b91c1c;
	}

	.nav-search .search-submit:active {
		transform: translateY(-50%) scale(.94);
	}

	/* Menu list inside drawer */
	.main-navigation #primary-menu {
		display: flex;
		flex-direction: column;
		width: 100%;
		padding: 4px 0 24px;
		background: transparent;
	}

	.main-navigation #primary-menu > li {
		width: 100%;
		border-top: 0;
		border-left: 0;
	}

	.main-navigation #primary-menu > li + li {
		border-left: 0;
		border-top: 1px solid var(--soicau-border);
	}

	.main-navigation #primary-menu a {
		display: block;
		padding: 14px 20px;
		color: var(--soicau-text);
		font-size: 15px;
		font-weight: 700;
		line-height: 1.3;
		background: transparent;
		text-decoration: none;
	}

	.main-navigation #primary-menu > li:hover > a,
	.main-navigation #primary-menu > li.current-menu-item > a,
	.main-navigation #primary-menu > li.current_page_item > a,
	.main-navigation #primary-menu > li.current-menu-ancestor > a {
		background: #fafbfc;
		color: var(--soicau-text);
	}

	/* Chevron indicator for items with submenu */
	.main-navigation #primary-menu li.menu-item-has-children > a {
		position: relative;
		padding-right: 44px;
	}

	.main-navigation #primary-menu li.menu-item-has-children > a::after {
		content: "";
		position: absolute;
		top: 50%;
		right: 22px;
		width: 8px;
		height: 8px;
		margin: 0;
		border-right: 2px solid #555;
		border-bottom: 2px solid #555;
		transform: translateY(-70%) rotate(45deg);
		transition: transform .2s ease;
	}

	.main-navigation #primary-menu li.menu-item-has-children.is-open > a::after {
		transform: translateY(-20%) rotate(-135deg);
	}

	/* Submenu inside drawer */
	.main-navigation #primary-menu .sub-menu {
		position: static;
		display: none;
		flex-direction: column;
		min-width: 0;
		width: 100%;
		background: transparent;
		box-shadow: none;
		padding: 0 0 6px;
		margin: 0;
	}

	.main-navigation #primary-menu li.is-open > .sub-menu {
		display: flex;
	}

	.main-navigation #primary-menu .sub-menu li {
		border-top: 0;
		width: 100%;
	}

	.main-navigation #primary-menu .sub-menu a {
		padding: 10px 20px 10px 36px;
		color: var(--soicau-text);
		font-size: 14px;
		font-weight: 500;
		background: transparent;
	}

	.main-navigation #primary-menu .sub-menu li:hover > a,
	.main-navigation #primary-menu .sub-menu li.current-menu-item > a {
		background: #fafbfc;
		color: var(--soicau-text);
	}

	.main-navigation #primary-menu .sub-menu .sub-menu a {
		padding-left: 52px;
	}

	/* Body scroll lock when drawer open */
	body.menu-open { overflow: hidden; }

	body.has-sticky-mobile-header .site-header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 1050;
		background: #fff;
		transition: top .25s ease;
	}

	body.has-sticky-mobile-header .site-header.is-hidden {
		top: calc(-1 * var(--soicau-sticky-header-h, 56px));
	}

	body.has-sticky-mobile-header {
		padding-top: var(--soicau-sticky-header-h, 56px);
	}
}

/* Small mobile */
@media (max-width: 480px) {
	.header-banner.has-banner .header-inner { padding: 6px 8px; }
	.header-banner .custom-logo { max-height: 40px; }
	.site-title, .site-title a { font-size: 1rem; }
	.header-banner.is-responsive .header-banner-img { height: 80px; }
}

/* Main */
.site-main {
	padding: 16px 0 0;
}

.site-main-front {
	padding-top: 0;
}

/* Breadcrumbs */
.soicau-breadcrumbs {
	font-size: 0.875rem;
	color: var(--soicau-muted);
	padding: 6px 16px;
	margin-bottom: 12px;
	text-align: center;
}

.soicau-breadcrumbs-list {
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: 1.6;
}

.soicau-breadcrumbs-item {
	display: inline;
}

.soicau-breadcrumbs-item + .soicau-breadcrumbs-item::before {
	content: "/";
	padding: 0 8px;
	color: var(--soicau-muted);
	font-weight: 400;
}

.soicau-breadcrumbs-item a {
	color: var(--soicau-muted);
}

.soicau-breadcrumbs-item a:hover,
.soicau-breadcrumbs-item a:focus {
	color: var(--soicau-accent);
	text-decoration: none;
}

.soicau-breadcrumbs-item.is-current > span {
	color: var(--soicau-text);
	font-weight: 600;
}

.page-header { margin-bottom: 16px; text-align: center; }
.page-title { margin: 0 0 8px; font-size: 1.5rem; }
.archive-description { margin-top: 8px; color: var(--soicau-muted, #6b7280); }

/* Post list / archive */
.post-list {
	display: grid;
	gap: 24px;
}

.post-item {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 16px;
	border-bottom: 1px solid var(--soicau-border);
	padding-bottom: 24px;
}

@media (max-width: 600px) {
	.post-item { grid-template-columns: 1fr; }
}

.entry-title { margin: 0 0 8px; font-size: 1.25rem; }
.post-single .entry-title,
.post-page .entry-title { font-size: 1.5rem; }
/* Căn giữa tiêu đề bài viết & trang */
.post-single .entry-title,
.post-page .entry-title { text-align: center; }
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 20px;
	color: var(--soicau-muted);
	font-size: 0.8rem;
	margin-bottom: 8px;
}
.entry-meta .meta-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.entry-meta .meta-img  { width: 16px; height: 16px; flex: 0 0 auto; vertical-align: middle; }

.post-single .entry-meta {
	justify-content: center;
	background: #f2f3f5;
	padding: 7px 16px;
	color: #1f2937;
	text-align: center;
	margin-left: -16px;
	margin-right: -16px;
	margin-bottom: 16px;
}

@media (max-width: 600px) {
	.entry-meta { gap: 4px 14px; font-size: 0.8rem; }
	.post-single .entry-meta { padding: 6px 12px; }
}

@media (max-width: 480px) {

	.post-single .entry-meta {
		margin-left: -12px;
		margin-right: -12px;
	}
}
.read-more   { font-weight: 600; }

.entry-content {
	text-align: justify;
}

/* Card grid */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.post-card {
	border: 1px solid var(--soicau-border);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.post-card-link { color: inherit; display: block; }
.post-card-link:hover { text-decoration: none; }
.post-card-body { padding: 12px; }
.post-card-title { margin: 0 0 4px; font-size: 1rem; }
.post-card-date { color: var(--soicau-muted); font-size: 0.8rem; }

/* Single */
.post-single .entry-content,
.post-page .entry-content {
	margin-top: 16px;
}

.post-single .entry-content > * + *,
.post-page .entry-content > * + * {
	margin-top: 16px;
}

.post-single .entry-content h2,
.post-page .entry-content h2,
.category-content h2 {
	color: var(--soicau-success, #16a34a);
}

.post-page .entry-content h2.tk-lead,
.post-page .entry-content h2.sc-lead,
.post-page .entry-content h2.tkn-lead,
.post-page .entry-content h2.tk-page-title,
.post-page .entry-content h2.sc-page-title {
	color: var(--tk-text, #1f1f23);
}
.post-page .entry-content h2.sc-detail-title {
	color: var(--sc-danger, #dc3545);
}

.post-single .entry-content h2,
.post-single .entry-content h3,
.post-single .entry-content h4,
.post-page .entry-content h2,
.post-page .entry-content h3,
.post-page .entry-content h4 {
	scroll-margin-top: calc(var(--soicau-sticky-header-h, 0px) + 16px);
}

.entry-content figure,
.entry-content .wp-caption {
	max-width: 100%;
	height: auto;
	margin-left: auto;
	margin-right: auto;
}

.entry-content figure img,
.entry-content .wp-caption img {
	max-width: 100%;
	height: auto;
}

.entry-content .wp-caption-text,
.entry-content figcaption {
	font-size: 0.875rem;
	color: var(--soicau-muted);
	text-align: center;
	margin-top: 6px;
}

.entry-content .aligncenter {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.entry-content .alignleft {
	float: left;
	margin: 0 16px 8px 0;
}

.entry-content .alignright {
	float: right;
	margin: 0 0 8px 16px;
}

@media (max-width: 600px) {
	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		margin: 0 auto 8px;
	}
}

.soicau-toc {
	display: block;
	margin: 0 0 28px;
	padding: 14px 18px 18px;
	background: #fafafa;
	border: 1px solid #eee;
	color: #333;
	font-size: 1rem;
	text-align: left;
}

.soicau-toc-head {
	margin-bottom: 6px;
}

.soicau-toc-title {
	font-size: 1em;
	font-weight: 700;
	color: inherit;
}

.soicau-toc-toggle {
	margin-left: 4px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 80%;
	white-space: nowrap;
	color: #3175e4;
	cursor: pointer;
}

.soicau-toc-toggle:hover {
	text-decoration: underline;
}

.soicau-toc-body {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows 0.3s ease;
	font-size: 90%;
}

.soicau-toc.is-collapsed .soicau-toc-body {
	grid-template-rows: 0fr;
}

.soicau-toc-body > .soicau-toc-list {
	overflow: hidden;
	min-height: 0;
}

.soicau-toc-list,
.soicau-toc-list ol {
	counter-reset: toc;
	list-style: none;
	margin: 0;
	padding: 0;
}

.soicau-toc-list ol {
	margin: 2px 0 0 14px;
	padding: 0;
}

@media (prefers-reduced-motion: reduce) {
	.soicau-toc-body {
		transition: none;
	}
}

.soicau-toc-list li {
	counter-increment: toc;
	margin-top: 2px;
}

.soicau-toc-list > li:first-child {
	margin-top: 0;
}

.soicau-toc-list a {
	color: #3175e4;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.soicau-toc-list a:hover,
.soicau-toc-list a:focus {
	color: #3175e4;
	text-decoration: none;
	border-bottom: 1px dotted #3175e4;
}

.soicau-toc-list a:visited {
	color: #000394;
}

.soicau-toc-list li > a::before {
	content: counters(toc, ".") ". ";
	margin-right: 2px;
	color: inherit;
}

.entry-footer {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--soicau-border);
}

.entry-footer .tax-label {
	font-weight: 600;
	color: var(--soicau-text);
	margin-right: 6px;
}

.tag-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.tag-links .tax-items {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tag-links .tax-items a {
	display: inline-block;
	background: #f2f3f5;
	color: var(--soicau-text);
	padding: 2px 12px;
	font-size: 0.85rem;
	line-height: 1.7;
}

.tag-links .tax-items a:hover {
	background: var(--soicau-accent);
	color: #fff;
	text-decoration: none;
}

.soicau-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--soicau-border);
}

.soicau-share-title {
	font-weight: 600;
	color: var(--soicau-text);
}

.soicau-share-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.soicau-share-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	transition: opacity .2s ease;
}

.soicau-share-btn:hover,
.soicau-share-btn:focus-visible {
	color: #fff;
	text-decoration: none;
	opacity: .88;
}

.share-facebook  { background: #1877f2; }
.share-x         { background: #000; }
.share-linkedin  { background: #0a66c2; }
.share-pinterest { background: #e60023; }
.share-whatsapp  { background: #25d366; }
.share-copy      { background: #5b6b7a; }

.share-copy.is-copied {
	background: var(--soicau-success, #16a34a);
	border-color: var(--soicau-success, #16a34a);
	color: #fff;
}

.share-copy.is-copied::after {
	content: attr(data-copied-label);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	background: var(--soicau-success, #16a34a);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 3px 8px;
}

@media (max-width: 600px) {
	.soicau-share {
		justify-content: center;
		text-align: center;
	}

	.soicau-share-links {
		justify-content: center;
	}
}

.author-box {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
	padding: 14px 16px;
	background: #f7f8fa;
	border: 1px solid var(--soicau-border);
}

.author-box-avatar {
	flex: 0 0 auto;
	line-height: 0;
}

.author-box-avatar img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.author-box-body {
	min-width: 0;
}

.author-box-name {
	display: block;
	margin-bottom: 6px;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--soicau-text);
}

.author-box-name a {
	color: inherit;
}

.author-box-name a:hover {
	color: var(--soicau-accent);
	text-decoration: none;
}

.author-box-bio {
	margin: 0;
	color: var(--soicau-muted);
	font-size: 0.82rem;
	line-height: 1.7;
}

@media (max-width: 600px) {
	.author-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 12px;
	}
}

.post-navigation {
	margin-top: 32px;
}

.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	flex: 1 1 0;
	min-width: 240px;
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation .nav-links a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 12px 16px;
	border: 1px solid var(--soicau-border);
	background: #fff;
	color: var(--soicau-text);
	transition: border-color .2s ease, background .2s ease;
}

.post-navigation .nav-links a:hover {
	border-color: var(--soicau-accent);
	background: #f8f9fa;
	text-decoration: none;
}

.post-navigation .nav-subtitle {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--soicau-muted);
}

.post-navigation .nav-title {
	font-weight: 600;
	color: var(--soicau-text);
	line-height: 1.4;
}

.post-navigation .nav-links a:hover .nav-title {
	color: var(--soicau-accent);
}

@media (max-width: 600px) {
	.post-navigation .nav-next { text-align: left; }
}

/* Comments */

.related-posts {
	margin-top: 24px;
}

.section-bar {
	margin: 0 0 16px;
	padding: 8px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: var(--soicau-accent);
}

.section-bar--full {
	margin-left: -16px;
	margin-right: -16px;
}

@media (max-width: 480px) {
	.section-bar--full {
		margin-left: -12px;
		margin-right: -12px;
	}
}

.site-main-front > .container > h1.section-bar {
	text-align: center;
}

.home-xsmb {
	margin-left: -16px;
	margin-right: -16px;
}
@media (max-width: 480px) {
	.home-xsmb {
		margin-left: -12px;
		margin-right: -12px;
	}
}

.hkq-card { overflow: hidden; }

.hkq-tabs {
	display: flex;
	background: transparent;
}
.hkq-tab {
	flex: 1 1 33.33%;
	background: #efefef;
	border: none;
	padding: 11px 8px;
	font-size: 14px;
	font-weight: 700;
	color: #333;
	cursor: pointer;
	text-align: center;
	text-transform: none;
	transition: background .2s, color .2s;
}
.hkq-tab + .hkq-tab { border-left: 2px solid #fff; }
.hkq-tab:hover,
.hkq-tab:focus {
	background: var(--soicau-accent, #e40000);
	color: #fff;
	opacity: .85;
}
.hkq-tab--active,
.hkq-tab--active:hover,
.hkq-tab--active:focus {
	background: var(--soicau-accent, #e40000);
	color: #fff;
	opacity: 1;
}

.hkq-panels { padding: 0; }
.hkq-panel { padding: 0; }
.hkq-panel[hidden] { display: none; }

@media (max-width: 640px) {
	.hkq-tab { font-size: 13px; padding: 10px 6px; }
}

.sc-xstools { margin-bottom: 10px; }
.sc-xstools .section-bar { margin-bottom: 10px; }
.sc-xstools-grid { padding: 0; }
.sc-xstools-row {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
}
.sc-xstools-row:last-child { margin-bottom: 0; }
.sc-xstools-col {
	flex: 1 1 50%;
	min-width: 0;
}
.sc-xstools-card {
	display: flex;
	align-items: center;
	padding: 5px;
	background: #ffffff;
	border: 1px dashed #dfdfdf;
	border-radius: .5rem;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease;
}
.sc-xstools-card:hover {
	border-color: var(--soicau-accent);
	text-decoration: none;
}
.sc-xstools-thumb {
	flex-shrink: 0;
	width: 40px;
}
.sc-xstools-thumb img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: .25rem;
}
.sc-xstools-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-left: 5px;
	min-width: 0;
}
.sc-xstools-label {
	margin: 0;
	color: #7d7d7d;
	font-size: 12px;
	line-height: 1.4;
}
.sc-xstools-title {
	margin: 0;
	color: var(--soicau-accent);
	font-size: 12px;
	font-weight: 700;
}

@media (max-width: 600px) {
	.sc-xstools { margin-bottom: 8px; }
	.sc-xstools .section-bar { margin-bottom: 8px; }
	.sc-xstools-grid { padding: 0; }
	.sc-xstools-row { gap: 8px; margin-bottom: 8px; }
	.sc-xstools-card { padding: 5px; }
	.sc-xstools-thumb,
	.sc-xstools-thumb img { width: 34px; height: 34px; }
	.sc-xstools-label { font-size: 11px; }
	.sc-xstools-title { font-size: 11px; line-height: 1.3; }
}

@media (max-width: 380px) {
	.sc-xstools-row { flex-direction: column; gap: 6px; margin-bottom: 6px; }
	.sc-xstools-col { flex-basis: auto; }
}

.related-posts .post-grid {
	grid-template-columns: repeat(3, 1fr);
	gap: 18px 16px;
}

.related-posts .post-card {
	border: none;
	border-radius: 0;
	background: transparent;
	overflow: visible;
}

.related-posts .post-card-thumb {
	overflow: hidden;
}

.related-posts .post-card-thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: opacity .2s ease, transform .3s ease;
}

.related-posts .post-card-link:hover .post-card-thumb img {
	opacity: .9;
	transform: scale(1.04);
}

.related-posts .post-card-body {
	padding: 8px 0 0;
}

.related-posts .post-card-title {
	font-size: 0.95rem;
	line-height: 1.35;
	font-weight: 600;
	color: var(--soicau-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.related-posts .post-card-link:hover .post-card-title {
	color: var(--soicau-accent);
}

.related-posts .post-card-date {
	display: none;
}

@media (max-width: 600px) {
	.related-posts .post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f3f4f6, #e7e9ee);
	color: #c2c7d0;
	transition: transform .3s ease;
}

.thumb-placeholder i {
	font-size: 2.2rem;
	line-height: 1;
}

.post-card-thumb--placeholder {
	aspect-ratio: 16 / 9;
}

.home-cat-box .post-card-row-thumb--placeholder {
	aspect-ratio: 390 / 220;
}

.post-card-row-thumb:hover,
.post-card-row-thumb:focus {
	text-decoration: none;
}

.home-cat-box .post-card-row-thumb:hover .thumb-placeholder,
.related-posts .post-card-link:hover .post-card-thumb .thumb-placeholder {
	transform: scale(1.04);
}

.comments-area {
	margin-top: 40px;
}

.comments-title,
.comment-reply-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid rgba(0, 0, 0, 0.1);
	position: relative;
}

.comment-reply-title small {
	float: right;
	font-size: 0.85rem;
	font-weight: 400;
}

.comment-reply-title small a {
	color: var(--soicau-accent);
}

.comments-title::after,
.comment-reply-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 40px;
	height: 2px;
	background: #2c2f34;
}

.comments-title::before,
.comment-reply-title::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: -5px;
	width: 0;
	height: 0;
	border-right: 5px solid transparent;
	border-top: 5px solid #2c2f34;
}

.comment-list {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
}

.comment-list ol.children {
	list-style: none;
	margin: 16px 0 0 32px;
	padding: 0;
}

.comment-list .comment {
	padding: 16px 0;
	border-bottom: 1px solid var(--soicau-border);
}

.comment-list .comment:last-child {
	border-bottom: 0;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-author .fn {
	font-weight: 700;
	font-style: normal;
}

.comment-metadata {
	font-size: 0.8rem;
	color: var(--soicau-muted);
}

.comment-content {
	line-height: 1.7;
}

.comment-list .reply {
	margin-top: 8px;
	font-size: 0.85rem;
}

/* Comment form */
.comment-respond {
	margin-top: 32px;
}

.comment-notes {
	color: var(--soicau-muted);
	font-size: 0.9rem;
	margin: 0 0 16px;
}

.comment-form .required {
	color: var(--soicau-accent);
	font-weight: 700;
}

.comment-form p {
	margin: 0 0 16px;
}

.comment-form label {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	font: inherit;
	color: var(--soicau-text);
	background: #fff;
	border: 1px solid var(--soicau-border);
	box-sizing: border-box;
	transition: border-color 0.15s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--soicau-accent);
}

.comment-form textarea {
	min-height: 160px;
	resize: none;
}

.comment-form-email {
	float: left;
	width: 49%;
}

.comment-form-url {
	float: right;
	width: 49%;
}

.comment-form-cookies-consent {
	clear: both;
	display: flex;
	align-items: center;
	gap: 8px;
}

.comment-form-cookies-consent input {
	margin: 0;
	flex-shrink: 0;
}

.comment-form-cookies-consent label {
	font-weight: 400;
	margin-bottom: 0;
}

.form-submit {
	clear: both;
	margin-bottom: 0;
}

.comment-form .submit,
.form-submit #submit {
	display: inline-block;
	padding: 8px 18px;
	font: inherit;
	font-size: 0.9rem;
	color: #fff;
	background: var(--soicau-accent);
	border: 0;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.comment-form .submit:hover,
.form-submit #submit:hover {
	opacity: 0.9;
}

@media (max-width: 600px) {
	.comment-form-email,
	.comment-form-url {
		float: none;
		width: 100%;
		margin-right: 0;
	}
}

/* Sidebar */
.widget-area {
	margin-top: 32px;
}

.widget + .widget {
	margin-top: 24px;
}

.widget-title {
	font-size: 1.125rem;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--soicau-accent);
}

/* Footer */
.site-footer {
	margin-top: 32px;
	color: #cbd1d8;
	font-size: 0.875rem;
	line-height: 1.6;
}

.site-footer .container {
	padding-top: 24px;
	padding-bottom: 16px;
	background: #1c1f24;
	border-top: 3px solid var(--soicau-accent);

	box-shadow: 0 3px 16px rgba(0, 0, 0, 0.35);
}

.site-footer a {
	color: #e8ecf1;
}

.site-footer a:hover,
.site-footer a:focus {
	color: var(--soicau-accent);
	text-decoration: none;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
	margin-bottom: 20px;
}

.footer-main {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 32px;
	padding-bottom: 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-main.has-brand-only {
	grid-template-columns: 1fr;
}

.footer-brand .footer-logo img {
	max-height: 48px;
	width: auto;
	margin-bottom: 10px;
}

.footer-brand .footer-title {
	display: inline-block;
	color: #fff;
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 8px;
}

.footer-about {
	margin: 0 0 12px;
	color: #b8bfc7;
}

.footer-social {
	display: flex;
	gap: 8px;
}

.footer-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 14px;
	transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.footer-social-link:hover {
	background: rgba(255, 255, 255, 0.18);
	text-decoration: none;
}

.footer-social-link.is-facebook:hover  { color: #1877F2; }
.footer-social-link.is-twitter:hover   { color: #ffffff; }
.footer-social-link.is-youtube:hover   { color: #FF0000; }
.footer-social-link.is-pinterest:hover { color: #E60023; }
.footer-social-link.is-telegram:hover  { color: #229ED9; }
.footer-social-link.is-signal:hover    { color: #3A76F0; }

.footer-heading {
	margin: 0 0 10px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--soicau-accent);
	display: inline-block;
}

.footer-contact ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 3px 0;
	color: #cbd1d8;
}

.footer-contact li i {
	color: var(--soicau-accent);
	margin-top: 5px;
	width: 16px;
	text-align: center;
	flex-shrink: 0;
}

.footer-links {
	padding: 14px 0 6px;
}

.footer-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
}

.footer-links a {
	color: #e8ecf1;
}

.footer-links li.current-menu-item > a,
.footer-links li.current_page_item > a,
.footer-links li.current-menu-ancestor > a,
.footer-links li.current-menu-parent > a {
	color: var(--soicau-accent);
	padding-bottom: 4px;
	border-bottom: 2px solid var(--soicau-accent);
}

.site-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: center;
	color: #8b929b;
	font-size: 0.8125rem;
	padding-top: 6px;
}

.site-info-note {
	font-style: italic;
	color: #6f7680;
}

.site-info-dmca {
	display: block;
	text-align: center;
	line-height: 0;
}

.site-info-dmca a,
.site-info-dmca img {
	display: inline-block;
	float: none;
	vertical-align: middle;
}

.site-copyright {
	background: #000;
	color: #fff;
	text-align: center;
	font-size: 0.875rem;
}

.site-footer .site-copyright .container {
	background: #000;
	border-top: 0;
	box-shadow: none;
	padding-top: 8px;
	padding-bottom: 8px;
}

@media (max-width: 600px) {
	.footer-main {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

/* Front-page hero */
.hero {
	text-align: center;
	padding: 48px 0;
	border-bottom: 1px solid var(--soicau-border);
	margin-bottom: 32px;
}

.hero-title { margin: 0 0 8px; font-size: 1.5rem; }
.hero-tagline { margin: 0; color: var(--soicau-muted); }

.section-title {
	font-size: 1.25rem;
	margin: 0 0 16px;
	padding-left: 12px;
	border-left: 4px solid var(--soicau-accent);
}

.home-intro {

	margin: -14px -14px 10px;
	padding: 8px 14px 12px;
	border: 1px dashed var(--soicau-accent);
}

@media (max-width: 480px) {

	.home-intro {
		margin-left: -10px;
		margin-right: -10px;
	}
}

.home-intro > p {
	margin: 0;
	padding: 12px 0;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--soicau-text);
	text-align: justify;
	border-bottom: 1px dashed var(--soicau-border);
}

.home-intro > p:first-child {
	padding-top: 0;
}

.home-intro > p:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.home-intro > p::before {
	content: "\2605"; /* ★ */
	margin-right: 6px;
	color: var(--soicau-accent);
	font-size: 0.9em;
}

.home-footer {
	margin: 10px 0 16px;
}

.home-footer-body > p {
	margin: 0;
	padding: 12px 0;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--soicau-text);
	text-align: justify;
	border-bottom: 1px dashed var(--soicau-border);
}

.home-footer-body > p:first-child {
	padding-top: 4px;
}

.home-footer-body > p:last-child {
	border-bottom: 0;
}

.home-footer-body > p::before {
	content: "\2749"; /* ❉ */
	margin-right: 6px;
	color: var(--soicau-accent);
	font-size: 0.9em;
}

.home-footer-tags {
	margin: 0;
	padding: 12px 0 0;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--soicau-text);
}

.home-footer-body + .home-footer-tags {
	border-top: 1px dashed var(--soicau-border);
}

.home-footer-tags .fa-tag {
	margin-right: 6px;
	color: var(--soicau-accent);
}

.home-footer-tags strong {
	margin-right: 4px;
}

.home-bottom {
	margin: 24px 0 16px;
}

.home-bottom-body {
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--soicau-text);
	text-align: justify;
}

.home-bottom-body > p {
	margin: 0 0 12px;
}

.home-bottom-body > p:last-child {
	margin-bottom: 0;
}

.home-bottom--collapsible .home-bottom-body {
	position: relative;
	overflow: hidden;
	transition: max-height .45s ease;
}

.home-bottom--collapsible.is-collapsed .home-bottom-body {
	max-height: 180px;
}

.home-bottom--collapsible.is-collapsed .home-bottom-body::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 80px;
	background: linear-gradient( to bottom, rgba(255,255,255,0), #fff );
	pointer-events: none;
	transition: opacity .25s ease;
}

.home-bottom--collapsible.is-animating .home-bottom-body::after {
	opacity: 0;
}

.home-bottom--scroll .home-bottom-body {
	max-height: 360px;
	overflow-y: auto;
}

.home-bottom-footer {
	text-align: center;
	padding: 10px 0 0;
}

.home-bottom-more {
	display: inline-block;
	padding: 5px 14px;
	background-color: var(--soicau-accent);
	color: #fff;
	border: none;
	cursor: pointer;
	font: inherit;
	transition: filter .3s ease;
}

.home-bottom-more:hover {
	color: #e0e0e0;
	filter: brightness(0.88);
}

.home-bottom-more:active {
	filter: brightness(0.76);
	color: #d0d0d0;
}

.home-cat-box {
	margin-bottom: 16px;
}

.home-cat-box--list.home-cat-box--no-more {
	margin-bottom: 0;
}

.home-cat-box:last-child {
	margin-bottom: 0;
}

.home-cat-box .section-bar {
	margin-bottom: 0;
}

.home-cat-box--card .section-bar,
.home-cat-box--box .section-bar {
	margin-bottom: 12px;
}

.home-cat-box .section-bar a {
	color: inherit;
	text-decoration: none;
}

.home-cat-box .section-bar a:hover {
	color: inherit;
	opacity: 0.92;
}

.home-cat-box-footer {
	text-align: center;
	padding: 10px 0;
	border-top: 1px dashed #e2e2e2;
}

.home-cat-box--box .home-cat-box-footer {
	border-top: none;
}

.home-cat-box--card .home-cat-box-footer {
	margin-top: 18px;
}

.home-cat-box-more {
	display: inline-block;
	padding: 5px 14px;
	background-color: var(--soicau-accent);
	color: #fff;
	border: none;
	text-decoration: none;
	transition: background-color .3s ease, filter .3s ease;
}

.home-cat-box-more:hover {
	color: #e0e0e0;
	text-decoration: none;
	filter: brightness(0.88);
}

.home-cat-box-more:active {
	filter: brightness(0.76);
	color: #d0d0d0;
}

.home-cat-box .post-card-list {
	display: block;
}

.home-cat-box .post-card-row {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 18px 0;
	border-bottom: 1px dashed #e2e2e2;
}

.home-cat-box .post-card-row:first-child {
	padding-top: 0;
}

.home-cat-box .post-card-row:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

.home-cat-box .post-card-row-thumb {
	flex: 0 0 30%;
	max-width: 300px;
	display: block;
	overflow: hidden;
}

.home-cat-box .post-card-row-thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 390 / 220;
	object-fit: cover;
	transition: transform .3s ease, opacity .2s ease;
}

.home-cat-box .post-card-row-thumb:hover img {
	transform: scale(1.04);
	opacity: .92;
}

.home-cat-box .post-card-row-body {
	flex: 1 1 auto;
	min-width: 0;
}

.home-cat-box .post-card-row-title {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.35;
	font-weight: 700;
}

.home-cat-box .post-card-row-title a {
	color: var(--soicau-text, #1f1f1f);
	font-size: 20px;
	font-weight: bold;
	text-decoration: none;
}

.home-cat-box .post-card-row-title a:hover {
	color: var(--soicau-accent, #d92121);
}

.home-cat-box .post-card-verified {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
	margin-left: 4px;
}

.home-cat-box .post-card-row-excerpt {
	margin: 0;
	color: #666;
	font-size: 15px;
	line-height: 1.6;
	word-break: break-word;

	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 767px) {
	.home-cat-box .post-card-row {
		gap: 16px;
	}

	.home-cat-box .post-card-row-thumb {
		flex: 0 0 40%;
		max-width: 40%;
	}
}

@media (max-width: 580px) {
	.home-cat-box .post-card-row {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.home-cat-box .post-card-row-thumb {
		flex: 1 0 auto;
		width: 100%;
		max-width: 100%;
	}

	.home-cat-box .post-card-row-title {
		font-size: 18px;
	}
}

.home-cat-box .post-box-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	padding: 8px 0;
}

.home-cat-box .post-box-col {
	display: flex;
	min-width: 0;
}

.home-cat-box .post-box-link {
	display: flex;
	flex: 1;
	align-items: center;
	padding: 5px;
	background: #fff;
	border: 1px dashed #dfdfdf;
	border-radius: .5rem;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease;
}

.home-cat-box .post-box-link:hover {
	border-color: var(--soicau-accent);
	text-decoration: none;
}

.home-cat-box .post-box-item {
	flex: 1;
	display: flex;
	align-items: center;
	min-width: 0;
}

.home-cat-box .post-box-thumb {
	flex-shrink: 0;
	width: 40px;
}

.home-cat-box .post-box-thumb img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: .25rem;
}

.home-cat-box .post-box-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-left: 5px;
	min-width: 0;
}

.home-cat-box .post-box-meta {
	margin: 0;
	color: #7d7d7d;
	font-size: 12px;
	line-height: 1.4;
}

.home-cat-box .post-box-title {
	margin: 0;
	color: var(--soicau-accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

@media (max-width: 600px) {
	.home-cat-box .post-box-list { gap: 8px; padding: 6px 0; }
	.home-cat-box .post-box-link { padding: 5px; }
	.home-cat-box .post-box-thumb,
	.home-cat-box .post-box-thumb img { width: 34px; height: 34px; }
	.home-cat-box .post-box-meta { font-size: 11px; }
	.home-cat-box .post-box-title { font-size: 11px; }
}

@media (max-width: 380px) {
	.home-cat-box .post-box-list { grid-template-columns: 1fr; gap: 6px; }
}

/* Search form */
.search-form {
	display: flex;
	gap: 8px;
	max-width: 480px;
}

.search-form .search-field {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid var(--soicau-border);
	border-radius: 4px;
}

.search-form .search-submit {
	padding: 8px 16px;
	border: none;
	border-radius: 4px;
	background: var(--soicau-accent);
	color: #fff;
	cursor: pointer;
}

/* 404 page */
body.error404 .site-main { padding: 0; }
body.error404 .site-footer { margin-top: 0; }
body.error404 .site-main > .container {
	padding-left: 0;
	padding-right: 0;
}

.error-404 {
	display: grid;
	gap: 28px;
}

.error-404-hero {
	text-align: center;
	padding: 48px 16px 40px;
	background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
	border: none;
	border-radius: 0;
}

.error-404-code {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: clamp(72px, 18vw, 140px);
	font-weight: 800;
	line-height: 1;
	color: var(--soicau-accent);
	letter-spacing: -2px;
	margin-bottom: 12px;
}

.error-404-code i {
	font-size: 0.7em;
	color: var(--soicau-accent);
	opacity: 0.85;
}

.error-404 .page-title {
	margin: 0 0 8px;
	font-size: clamp(1.25rem, 4vw, 1.75rem);
}

.error-404-lead {
	max-width: 560px;
	margin: 0 auto 20px;
	color: var(--soicau-muted);
}

.error-404-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.error-404-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 600;
	border: 1px solid transparent;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.error-404-btn.is-primary {
	background: var(--soicau-accent);
	color: #fff;
}

.error-404-btn.is-primary:hover,
.error-404-btn.is-primary:focus {
	background: #b81a1a;
	color: #fff;
	text-decoration: none;
}

.error-404-search {
	max-width: 640px;
	margin: 0 auto 20px;
}

.error-404-search .search-form {
	max-width: 100%;
	gap: 0;
	background: #fff;
	border: 1px solid var(--soicau-border);
	border-radius: 999px;
	padding: 6px 6px 6px 18px;
	box-shadow: 0 6px 18px color-mix(in srgb, var(--color-primary) 8%, transparent);
	transition: box-shadow .15s ease, border-color .15s ease;
}

.error-404-search .search-form:focus-within {
	border-color: var(--soicau-accent);
	box-shadow: 0 8px 24px color-mix(in srgb, var(--color-primary) 18%, transparent);
}

.error-404-search .search-form label {
	flex: 1;
	display: flex;
	align-items: center;
	min-width: 0;
}

.error-404-search .search-form .search-field {
	flex: 1;
	width: 100%;
	min-width: 0;
	border: none;
	background: transparent;
	padding: 12px 8px;
	font-size: 1rem;
	color: var(--soicau-text);
	outline: none;
}

.error-404-search .search-form .search-field::placeholder {
	color: var(--soicau-muted);
}

.error-404-search .search-form .search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	font-size: 1rem;
	background: var(--soicau-accent);
	color: #fff;
	border: none;
	cursor: pointer;
	transition: background-color .15s ease;
}

.error-404-search .search-form .search-submit:hover,
.error-404-search .search-form .search-submit:focus {
	background: #b81a1a;
}

@media (max-width: 480px) {
	.error-404-search .search-form { padding: 4px 4px 4px 14px; }
	.error-404-search .search-form .search-submit { width: 38px; height: 38px; }
}

/* Archive compact list (icon + tiêu đề) */
.post-list--compact {
	display: block;
}

.post-list--compact .post-list-item {
	border-bottom: 1px dashed #e2e2e2;
	padding: 6px 0;
	clear: both;
}

.post-list--compact .post-list-item:last-child {
	border-bottom: none;
}

.post-list--compact .post-list-item a {
	background-color: transparent;
	line-height: 1.4;
	font-size: 16px;
	color: #383838;
	display: flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}

.post-list--compact .post-list-item a:hover {
	color: var(--soicau-accent, #d92121);
	text-decoration: none;
}

.post-list--compact .post-list-item img {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}

/* Phân trang (the_posts_pagination) */
.pagination { margin: 24px 0; }

.category-content { margin-top: 32px; }

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--soicau-border, #e5e7eb);
	color: var(--soicau-text, #1f1f1f);
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.pagination a.page-numbers:hover {
	background: var(--soicau-accent, #d92121);
	border-color: var(--soicau-accent, #d92121);
	color: #fff;
}

.pagination .page-numbers.current {
	background: var(--soicau-accent, #d92121);
	border-color: var(--soicau-accent, #d92121);
	color: #fff;
	font-weight: 600;
}

.pagination .page-numbers.dots {
	color: var(--soicau-muted, #6b7280);
}

/* ----- Section / Box ----- */
.tk-section,
.sc-section {
	margin-bottom: var(--tk-gap, 12px);
}
.tk-section + .tk-section,
.sc-section + .sc-section {
	margin-top: var(--tk-gap, 12px);
}

.tk-hr,
.sc-hr {
	border: 0;
	border-top: 1px solid var(--tk-border, #dee2e6);
	margin: var(--tk-gap, 12px) 0;
}

.tk-box,
.sc-box {
	background: var(--tk-bg, #fff);
	border-radius: var(--tk-radius-sm, 4px);
	margin-bottom: var(--tk-gap, 12px);
	overflow: hidden;
}
.tk-box:last-child,
.sc-box:last-child {
	margin-bottom: 0;
}
.tk-box-main + .tk-box-table,
.sc-box-main + .sc-box-table {
	border-top: 1px solid var(--tk-border, #dee2e6);
}
.tk-box-body,
.sc-box-body {
	padding: var(--tk-gap, 12px) 0;
}

/* ----- Form grid ----- */
.tk-form,
.sc-form {
	margin: 0;
}
.tk-form-grid,
.sc-form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--tk-gap, 12px);
}
.tk-form-grid-2,
.sc-form-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tk-form-grid-4,
.sc-form-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tk-form-field,
.sc-form-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.tk-form-field > label,
.sc-form-field > label {
	display: block;
	font-size: var(--tk-font-sm, 14px);
	font-weight: 600;
	color: var(--tk-text, #1f1f1f);
	margin-bottom: 4px;
	line-height: 1.3;
}

/* ----- Form controls ----- */
.tk-control,
.sc-control {
	display: block;
	width: 100%;
	height: 38px;
	padding: 6px 10px;
	font-family: inherit;
	font-size: var(--tk-font-sm, 14px);
	line-height: 1.4;
	color: var(--tk-text, #1f1f1f);
	background: var(--tk-bg, #fff);
	border: 1px solid var(--tk-border, #dee2e6);
	border-radius: var(--tk-radius-sm, 4px);
	box-sizing: border-box;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.tk-control,
textarea.sc-control {
	height: auto;
	min-height: 80px;
	padding: 8px 10px;
	line-height: 1.5;
	resize: vertical;
}
select.tk-control,
select.sc-control {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--tk-text-muted, #6b7280) 50%),
	                  linear-gradient(135deg, var(--tk-text-muted, #6b7280) 50%, transparent 50%);
	background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 28px;
}
.tk-control:focus,
.sc-control:focus,
.tk-control:focus-visible,
.sc-control:focus-visible {
	border-color: var(--tk-primary, #d92121);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 15%, transparent);
}
.tk-control::placeholder,
.sc-control::placeholder {
	color: var(--tk-text-muted, #6b7280);
}

.tk-date-wrap,
.sc-date-wrap {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
}
.tk-date-wrap > .tk-control,
.sc-date-wrap > .sc-control {
	flex: 1 1 auto;
	min-width: 0;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	border-right: 0;
}
.tk-date-hidden,
.sc-date-hidden {
	position: absolute;
	left: 0;
	top: 0;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: 0;
	border: 0;
	opacity: 0;
	pointer-events: none;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
.tk-date-btn,
.sc-date-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	font-size: 15px;
	color: var(--tk-text, #1f1f1f);
	background: var(--tk-bg-alt, #f7f7f8);
	border: 1px solid var(--tk-border, #dee2e6);
	border-top-right-radius: var(--tk-radius-sm, 4px);
	border-bottom-right-radius: var(--tk-radius-sm, 4px);
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tk-date-btn:hover,
.sc-date-btn:hover {
	background: var(--tk-primary, #d92121);
	border-color: var(--tk-primary, #d92121);
	color: #fff;
}
.tk-date-btn:focus-visible,
.sc-date-btn:focus-visible {
	outline: 2px solid var(--tk-primary, #d92121);
	outline-offset: 1px;
}

/* ----- Buttons ----- */
.tk-btn,
.sc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 8px 18px;
	font-family: inherit;
	font-size: var(--tk-font-sm, 14px);
	line-height: 1.4;
	color: var(--tk-text, #1f1f1f);
	background: var(--tk-bg-alt, #f7f7f8);
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.tk-btn:hover,
.sc-btn:hover {
	background: #ececef;
}
.tk-btn:disabled,
.sc-btn:disabled {
	opacity: .7;
	cursor: wait;
}
.tk-btn-primary,
.sc-btn-primary {
	background: var(--tk-primary, #d92121);
	color: #fff;
}
.tk-btn-primary:hover,
.sc-btn-primary:hover {
	background: var(--tk-primary-dark, #a31818);
	color: #fff;
}

/* ----- Sub heading ----- */
.tk-sub,
.sc-sub {
	text-align: center;
	color: var(--tk-text-muted, #6b7280);
	font-size: var(--tk-font-sm, 14px);
	margin: 0 0 var(--tk-gap, 12px);
}

@media (max-width: 640px) {
	.tk-form-grid-4,
	.sc-form-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 420px) {
	.tk-form-grid-2,
	.sc-form-grid-2,
	.tk-form-grid-4,
	.sc-form-grid-4 {
		grid-template-columns: 1fr;
	}
}

.home-admin-soi-cau { margin-bottom: 10px; }
.asc-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.asc-card {
    display: flex;
    align-items: stretch;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    min-height: 78px;
}
.asc-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin: -1px 0;
}
.asc-logo--left  { margin-left: -1px; }   /* đè viền trái */
.asc-logo--right { margin-right: -1px; }   /* đè viền phải */
.asc-logo img {
    display: block;
    width: 130px;
    height: 100%;
}
.asc-body {
    flex: 1 1 auto;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
}
.asc-body--right { text-align: left; }
.asc-body--left  { text-align: right; }
.asc-title {
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2px;
}
.asc-content { color: var(--color-text); font-weight: 400; }
.asc-content b,
.asc-content strong { color: var(--color-text); font-weight: 400; }
.asc-line { margin: 0; }
.asc-num { color: var(--color-text); font-weight: 400; }
.asc-content .asc-hit { color: var(--color-primary); font-weight: 700; }
.asc-content .asc-hit sup { font-size: 10px; font-weight: 400; margin-left: 1px; }
.asc-empty { color: var(--color-muted); font-style: italic; }
.asc-login,
.asc-vip { color: var(--color-text); }
.asc-login a,
.asc-vip a {
    color: var(--color-primary);
    font-weight: 400;
    text-decoration: none;
}
.asc-login a:hover,
.asc-vip a:hover { text-decoration: underline; }
.asc-vip i.fa-crown {
    color: #f5b301;
    margin-right: 6px;
}

@media (max-width: 640px) {
    .asc-logo img { width: 96px; }
    .asc-body { padding: 8px 12px; font-size: 13px; }
}

.soicau-vip-gate {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    border: 1px solid color-mix(in srgb, var(--soicau-warning) 45%, #fff);
    border-left: 4px solid var(--soicau-warning, #f59e0b);
    margin: 12px 0;
}
.soicau-vip-gate-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--soicau-warning, #f59e0b);
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.soicau-vip-gate-body { flex: 1 1 auto; min-width: 0; }
.soicau-vip-gate-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
}
.soicau-vip-gate-body p {
    margin: 0 0 10px;
    color: #78350f;
    font-size: 14px;
}
.soicau-vip-gate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #b45309;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s;
}
.soicau-vip-gate-btn:hover {
    background: #92400e;
    color: #fff;
    text-decoration: none;
}

.cs-wrap--gated,
.cs-chat--gated { display: block; }
@media (max-width: 600px) {
    .soicau-vip-gate { flex-direction: column; text-align: center; }
}

.vip-topup-page { flex-direction: column; gap: 8px; }

.vip-topup-page,
.vip-topup-page * { border-radius: 0 !important; }

.vip-topup-page .auth-alert-success,
.vip-topup-page .auth-alert-error {
    border: 0;
    width: 100%;
    margin: 0;
}

.vip-topup-page .auth-subtitle {
    margin: 0 0 18px;
    color: var(--color-text, #1f1f23);
    font-size: 14px;
}
.vip-topup-page .auth-field { gap: 5px; }
.vip-topup-page .auth-field label {
    font-weight: 600;
    font-size: 13px;
    color: var(--color-text, #1f1f23);
}

.vip-topup-page .auth-form {
    width: 100%;
    margin: 8px 0 0;
    gap: 16px;
}
.vip-topup-page .auth-form input[type="text"] { padding: 9px 12px; }

.vip-topup-page .auth-form select {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--color-border, #e5e7eb);
    background: #fff;
    color: var(--color-text, #1f1f23);
}
.vip-topup-page .auth-form select:focus {
    outline: none;
    border-color: var(--color-primary, #057e86);
    box-shadow: 0 0 0 3px rgba(5, 126, 134, .15);
}
.vip-topup-page .auth-form select.is-invalid { border-color: #c0392b; }

.vip-topup-page .auth-btn {
    width: auto;
    align-self: flex-start;
    padding: 8px 24px;
    font-size: 14px;
}

.vip-topup-page .vip-topup-status {
    background: #fffbeb;
    color: #92400e;
    margin-bottom: 0;
}
.vip-topup-status i { margin-right: 6px; color: #b45309; }

.vip-topup-pricing { margin: 0; }
.vip-topup-pricing-item { margin: 4px 0; font-size: 14px; }
.vip-topup-pricing-amount { font-weight: 700; color: #ff0000; }
.vip-topup-pricing-days   { color: #ff0000; font-weight: 700; }

.vip-topup-note {
    background: transparent;
    padding: 0;
    margin: 12px 0 18px;
    font-size: 13px;
    color: var(--color-text, #1f1f23);
}
.vip-topup-note ul { margin: 6px 0 0; padding-left: 1.2rem; }
.vip-topup-note li { margin: 2px 0; }

.vip-topup-page h2.section-bar { color: #fff; }
.vip-topup-page .section-bar { margin-bottom: 0; }

.vip-topup-history-empty {
    color: var(--color-text-muted, #6b7280);
    text-align: center;
    padding: 1rem 0;
    margin: 0;
}
.vip-topup-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.vip-topup-history-table thead th {
    text-align: left;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text, #1f1f23);
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 2px solid var(--color-border, #e5e7eb);
    white-space: nowrap;
}
.vip-topup-history-table thead th:last-child { text-align: right; }
.vip-topup-history-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    vertical-align: top;
}
.vip-topup-history-index {
    width: 44px;
    white-space: nowrap;
    color: var(--color-text, #1f1f23);
    font-weight: 700;
}
.vip-topup-history-body   { font-size: 13px; }
.vip-topup-history-status { text-align: right; white-space: nowrap; }

.vip-topup-page .vip-topup-history-table {
    width: calc(100% + 32px);
    margin-top: -8px;
    margin-left: -16px;
    margin-right: -16px;
}
.vip-topup-history-table th:first-child,
.vip-topup-history-table td:first-child { padding-left: 16px; }
.vip-topup-history-table th:last-child,
.vip-topup-history-table td:last-child  { padding-right: 16px; }
.vip-topup-page .vip-topup-contact { margin-top: -8px; margin-left: -16px; margin-right: -16px; }
@media (max-width: 480px) {
    .vip-topup-page .vip-topup-history-table {
        width: calc(100% + 24px);
        margin-left: -12px;
        margin-right: -12px;
    }
    .vip-topup-history-table th:first-child,
    .vip-topup-history-table td:first-child { padding-left: 12px; }
    .vip-topup-history-table th:last-child,
    .vip-topup-history-table td:last-child  { padding-right: 12px; }
    .vip-topup-page .vip-topup-contact { margin-left: -12px; margin-right: -12px; }
}
.vip-topup-history-row    { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: 2px 0; }
.vip-topup-history-sep    { color: var(--color-text-muted, #6b7280); }
.vip-topup-history-amount { color: var(--color-text-muted, #6b7280); }
.vip-topup-history-meta   { color: var(--color-text-muted, #6b7280); font-size: 12px; }
.vip-topup-history-meta code {
    background: #f1f5f9;
    color: var(--color-text, #1f1f23);
    padding: 1px 6px;
    font-size: 12px;
}
.vip-topup-history-meta strong { color: var(--color-text, #1f1f23); }
.vip-topup-history-days   { color: var(--soicau-success, #16a34a); font-weight: 600; }
.vip-topup-history-note   { font-style: italic; }

.vip-topup-badge {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
}
.vip-topup-badge--pending  { background: var(--soicau-warning, #f59e0b); }
.vip-topup-badge--approved { background: var(--soicau-success, #16a34a); }
.vip-topup-badge--rejected { background: var(--soicau-danger, #dc2626); }

.vip-topup-contact {
    margin: 0;
    padding: 10px 16px;
    background: var(--color-bg-alt, #f7f7f8);
    color: var(--color-text, #1f1f23);
    font-size: 13px;
}
.vip-topup-contact i { color: var(--color-primary, #057e86); margin-right: 6px; }
.vip-topup-contact a { color: var(--color-primary, #057e86); font-weight: 600; }

@media (max-width: 600px) {
    .vip-topup-history-table thead th,
    .vip-topup-history-table tbody td { padding: 8px 6px; }
}

.home-du-doan {
	margin: 20px -16px 0;
}
@media (max-width: 480px) {
	.home-du-doan {
		margin-left: -12px;
		margin-right: -12px;
	}
}

/* ---------- Tabs ---------- */
.dd-nav-tabs {
	display: flex;
	margin: 0;
	padding: 0;
}
.dd-tab {
	flex: 1 1 33.33%;
	display: block;
	width: 100%;
	padding: 11px 8px;
	background: #efefef;
	color: #333;
	text-align: center;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	line-height: inherit;
	border: 0;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.dd-tab + .dd-tab {
	border-left: 2px solid #fff;
}
.dd-tab:hover,
.dd-tab:focus {
	background: var(--soicau-accent, #e40000);
	color: #fff;
	text-decoration: none;
	opacity: .85;
}
.dd-tab--active,
.dd-tab--active:hover,
.dd-tab--active:focus {
	background: var(--soicau-accent, #e40000);
	color: #fff;
	opacity: 1;
}

/* ---------- Box chứa nội dung + lưu ý ---------- */
.dd-content-box {
	border: 2px solid var(--soicau-accent, #e40000);
	background: #fff;
	overflow: hidden;
}

.dd-tab-content {
	background: #fff;
}
.dd-panel[hidden] {
	display: none;
}
.dd-empty {
	margin: 0;
	padding: 24px 16px;
	text-align: center;
	color: #6b7280;
	font-style: italic;
}

.dd-stack {
	display: flex;
	flex-direction: column;
}

/* ---------- Card từng tỉnh ---------- */
.dd-card {
	background: #fff;
}
.dd-card + .dd-card {
	border-top: 1px solid #e5e7eb;
}
.dd-card-title {
	padding: 9px 12px;
	background: #f0f0f0;
	font-size: 14px;
	font-weight: 700;
	color: #1f1f23;
	text-align: center;
	border-bottom: 1px solid #e5e7eb;
}

/* ---------- Bảng dự đoán ---------- */
.table-prediction {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	color: #1f1f23;
	table-layout: fixed;
}
.table-prediction td {
	padding: 9px 14px;
	border-top: 1px solid #f0f0f0;
	line-height: 1.4;
	vertical-align: middle;
}
.table-prediction tr:first-child td {
	border-top: none;
}
.table-prediction tr:nth-child(even) {
	background: rgba(0, 0, 0, 0.03);
}
.table-prediction .name {
	width: 50%;
	color: #1f1f23;
	border-right: 1px solid #f0f0f0;
}
.table-prediction .value {
	width: 50%;
	color: #1f1f23;
}
.dd-bullet {
	width: 20px;
	height: 20px;
	margin-right: 6px;
	vertical-align: sub;
	display: inline-block;
}

.dd-hit {
	color: var(--soicau-accent, #e40000);
	font-weight: 700;
}
.dd-hit sup {
	font-size: 10px;
	margin-left: 1px;
	color: var(--soicau-accent, #e40000);
	font-weight: 400;
}

/* ---------- Lưu ý ---------- */
.dd-note {
	margin: 0;
	padding: 10px 14px;
	background: #fff8f8;
	color: var(--soicau-accent, #e40000);
	font-size: 13px;
	line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.dd-tab {
		font-size: 13px;
		padding: 10px 6px;
	}
	.table-prediction {
		font-size: 13px;
	}
	.table-prediction td {
		padding: 8px 10px;
	}
	.table-prediction .name,
	.table-prediction .value {
		width: 50%;
	}
}

.home-top-pairs {
	margin: 0 -16px;
}
@media (max-width: 480px) {
	.home-top-pairs {
		margin-left: -12px;
		margin-right: -12px;
	}
}
.home-top-pairs .tp-container {
	padding: 0;
}
.home-top-pairs .section-bar {
	margin: 0;
}
.home-top-pairs .tp-board {
	text-align: justify;
}
.home-top-pairs .tp-body {
	padding: 12px 16px;
}
@media (max-width: 480px) {
	.home-top-pairs .tp-body {
		padding: 12px;
	}
}
.home-top-pairs .tp-heading {
	margin-bottom: 5px;
}
.home-top-pairs .tp-group {
	margin-bottom: 8px;
}
.home-top-pairs .tp-grid {
	display: grid;
	grid-template-columns: repeat(8, 70px);
	gap: 4px;
}
.home-top-pairs .tp-pair {
	box-sizing: border-box;
	padding: 3px 8px;
	display: block;
	background: #fff;
	border: #dfdddb 1px solid;
	font-size: 14px;
	font-weight: 500;
	color: #1f1f23;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
	cursor: default;
}
@media (max-width: 600px) {
	.home-top-pairs .tp-grid {
		grid-template-columns: repeat(4, 70px);
	}
}
.home-top-pairs .tp-pair .tp-n {
	color: inherit;
}

.home-top-pairs .tp-pair .tp-n.tp-hit {
	color: var(--soicau-accent, #e40000);
	font-weight: 700;
}
.home-top-pairs .tp-pair .tp-n.tp-hit sup {
	font-size: 10px;
	margin-left: 1px;
	color: var(--soicau-accent, #e40000);
	font-weight: 400;
}
.home-top-pairs .tp-empty {
	color: #6b7280;
	font-style: italic;
	font-size: 13px;
}

.home-bac-nho {
	margin: 0 -16px;
}
@media (max-width: 480px) {
	.home-bac-nho {
		margin-left: -12px;
		margin-right: -12px;
	}
}
.home-bac-nho .container-wrapper {
	padding: 0;
}
.home-bac-nho .section-bar {
	margin: 0;
}
.home-bac-nho .soicau-cs-stats--empty {
	background: #fff;
}

.soicau-cs-stats--empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 200px;
	padding: 40px 20px;
	text-align: center;
	color: #6b7280;
}
.soicau-cs-stats--empty > i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--soicau-danger) 8%, #fff);
	color: var(--soicau-danger, #dc2626);
	font-size: 32px;
}
.soicau-cs-stats--empty p {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #374151;
}
.soicau-cs-stats--empty .soicau-cs-stats-empty-hint {
	max-width: 320px;
	margin-top: 2px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: #9ca3af;
}

.home-cao-thu {
	margin: 0 -16px;
}
@media (max-width: 480px) {
	.home-cao-thu {
		margin-left: -12px;
		margin-right: -12px;
	}
}
.home-cao-thu .container-wrapper {
	padding: 0;
}
.home-cao-thu .section-bar {
	margin: 0;
}
.home-cao-thu .ct-list {
	background: #fff;
}
.home-cao-thu .ct-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-bottom: 1px solid #eef0f2;
}
.home-cao-thu .ct-row:last-child {
	border-bottom: none;
}
.home-cao-thu .ct-row:nth-child(even) {
	background: rgba(0, 0, 0, 0.03);
}
.home-cao-thu .ct-rank {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: #6b7280;
	background: transparent;
}
.home-cao-thu .ct-rank--1 {
	color: #fff;
	background: #f5b301;
}
.home-cao-thu .ct-rank--2 {
	color: #fff;
	background: #b7bcc4;
}
.home-cao-thu .ct-rank--3 {
	color: #fff;
	background: #e8730c;
}
.home-cao-thu .ct-avatar {
	flex: 0 0 auto;
	line-height: 0;
}
.home-cao-thu .ct-avatar img {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
}
.home-cao-thu .ct-info {
	flex: 1 1 auto;
	min-width: 0;
}
.home-cao-thu .ct-name {
	font-weight: 700;
	color: #1f2937;
	font-size: 15px;
	line-height: 1.3;
}
.home-cao-thu .ct-rate {
	display: inline-block;
	margin-top: 3px;
	padding: 1px 6px;
	font-size: 12px;
	font-weight: 600;
	color: #15803d;
	background: #e7f6ec;
	border: 1px solid #bfe6cd;
}
.home-cao-thu .ct-numbers {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 190px;
}
.home-cao-thu .ct-line {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	white-space: nowrap;
}
.home-cao-thu .ct-dot {
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	border-radius: 50%;
}
.home-cao-thu .ct-dot--lo {
	background: #4aa3ff;
}
.home-cao-thu .ct-dot--de {
	background: #e63946;
}
.home-cao-thu .ct-label {
	color: #4b5563;
}
.home-cao-thu .ct-vals {
	font-weight: 700;
	color: #1f2937;
}

.home-cao-thu .ct-vals .ct-hit {
	color: var(--soicau-accent, #e40000);
}
.home-cao-thu .ct-vals .ct-hit sup {
	font-size: 10px;
	margin-left: 1px;
	color: var(--soicau-accent, #e40000);
	font-weight: 400;
}
@media (max-width: 560px) {
	.home-cao-thu .ct-row {
		gap: 8px;
		padding: 10px 8px;
	}
	.home-cao-thu .ct-numbers {
		min-width: 0;
	}
}

/* ===== Hiệu ứng trực tiếp KQXS ===== */

.kq-num-pending .fa-spinner {
    color: currentColor;
    opacity: 0.6;
    font-size: 14px;
    vertical-align: middle;
}

.kq-num-spinning {
    background-color: rgba(200, 5, 5, 0.06);
    transition: background-color 0.25s ease;
}
.kq-num-spinning .kq-num-text {
    font-variant-numeric: tabular-nums;
    color: #c80505;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 1 !important;
    transition: none !important;
}

.boxResult { position: relative; }
.kqxs-live-wrap[data-live-finished="0"] .kq-th-header {
    position: relative;
    padding-bottom: 32px;
}
.kqxs-live-wrap[data-live-finished="0"] .kq-th-header::after {
    content: 'TRỰC TIẾP';
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    z-index: 5;
    padding: 2px 12px 2px 21px;
    background: rgba(255, 255, 255, 0.18);   /* nền trắng mờ trong suốt */
    backdrop-filter: blur(3px);              /* làm mờ phần nền phía sau (frosted) */
    -webkit-backdrop-filter: blur(3px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    line-height: 1.6;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.kqxs-live-wrap[data-live-finished="0"] .kq-th-header::before {
    content: '';
    position: absolute;
    left: calc(50% - 36px);
    bottom: 13px;
    z-index: 6;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    animation: kq-trucdot-pulse 1.2s ease-out infinite;
    pointer-events: none;
}
@keyframes kq-trucdot-pulse {
    0%   { transform: scale(1);   box-shadow: 0 0 0 0   rgba(255, 59, 48, 0.7); }
    70%  { transform: scale(0.9); box-shadow: 0 0 0 7px rgba(255, 59, 48, 0);   }
    100% { transform: scale(1);   box-shadow: 0 0 0 0   rgba(255, 59, 48, 0);   }
}

@media (max-width: 480px) {
    .kqxs-live-wrap[data-live-finished="0"] .kq-th-header { padding-bottom: 28px; }
    .kqxs-live-wrap[data-live-finished="0"] .kq-th-header::after {
        font-size: 9px;
        padding: 1px 10px 1px 18px;
        bottom: 5px;
    }
    .kqxs-live-wrap[data-live-finished="0"] .kq-th-header::before {
        left: calc(50% - 33px);
        bottom: 11px;
    }
}

.soicau-live-banner {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 32px);
    padding: 8px 10px 8px 14px;
    background: #d92b2b;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    animation: slb-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.soicau-live-banner[hidden] { display: none; }
@keyframes slb-in {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.soicau-live-banner .slb-text { white-space: nowrap; }

.slb-dots { display: inline-flex; gap: 4px; }
.slb-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    animation: slb-dot 1.2s ease-in-out infinite;
}
.slb-dots i:nth-child(2) { animation-delay: 0.2s; }
.slb-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes slb-dot {
    0%, 100% { opacity: 0.45; transform: scale(0.85); }
    50%      { opacity: 1;    transform: scale(1.1); background: #fff; }
}

.slb-go {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.3px;
    padding: 5px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.slb-go:hover { background: #fff; color: #d92b2b; }

/* Nút đóng (×) */
.slb-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 20px;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer;
    transition: color 0.15s ease;
}
.slb-close:hover { color: #fff; }

@media (max-width: 480px) {
    .soicau-live-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        gap: 8px;
        font-size: 13px;
        padding: 7px 8px 7px 12px;
    }
    .slb-text { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .soicau-live-banner,
    .slb-dots i { animation: none; }
}

.soicau-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 9998;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: var(--color-primary);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.15s ease;
}
.soicau-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.soicau-to-top:hover { background: var(--color-primary-dark); }

@media (max-width: 480px) {
    .soicau-to-top { right: 14px; bottom: 16px; width: 42px; height: 42px; }

    body.has-live-banner .soicau-to-top { bottom: 66px; }
}
@media (prefers-reduced-motion: reduce) {
    .soicau-to-top { transition: opacity 0.2s ease, visibility 0.2s; transform: none; }
    .soicau-to-top.is-visible { transform: none; }
}

.auth-page {
    display: flex;
    justify-content: center;
}

.auth-page-subtitle {
    text-align: center;
    margin: 0 0 16px;
    color: var(--color-text-muted, #6b7280);
    font-size: 14px;
}

.auth-card {
    width: 100%;
    max-width: var(--container-max, 1200px);
    background: var(--color-surface, #fff);
}

.auth-subtitle {
    margin: 0 0 18px;
    color: var(--color-text-muted, #6b7280);
    font-size: 14px;
}

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

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.auth-field label {
    color: var(--color-text);
    font-size: 14px;
}
.auth-optional {
    color: var(--color-text-muted, #6b7280);
    font-weight: 400;
    font-size: 12px;
}
.auth-required {
    color: #c0392b;
    margin-left: 4px;
    font-weight: 700;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text);
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.auth-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(5, 126, 134, .15);
}
.auth-form input.is-invalid { border-color: #c0392b; }

.auth-hint {
    color: var(--color-text-muted, #6b7280);
    font-size: 12px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0;
    color: var(--color-text-muted, #6b7280);
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1 1 0;
    height: 1px;
    background: var(--color-border);
}

.auth-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.auth-tabs::-webkit-scrollbar { height: 4px; width: 0; }
.auth-tabs::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }
.auth-tab {
    background: transparent;
    border: 0;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--color-text-muted, #6b7280);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-family: inherit;
    margin-bottom: -1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .auth-tabs {
        margin-bottom: 14px;
        overflow-x: visible;
    }
    .auth-tab {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 6px;
        font-size: 13px;
        justify-content: center;
    }
    .auth-tab-label {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
@media (max-width: 420px) {
    .auth-tab { padding: 10px 4px; gap: 0; }
    .auth-tab-label { display: none; }
    .auth-tab i { font-size: 16px; }
}
.auth-tab:hover { color: var(--color-text); }
.auth-tab.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.auth-tab-panel { display: none; }
.auth-tab-panel.is-active {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-empty {
    margin: 0;
    padding: 16px 12px;
    text-align: center;
    color: var(--color-text-muted, #6b7280);
    font-size: 14px;
}
.auth-empty i { margin-right: 6px; }

.auth-block-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.auth-block-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}
.auth-block-item:last-child { border-bottom: 0; }
.auth-block-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.auth-block-avatar img,
.auth-block-avatar .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.auth-block-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.auth-block-name {
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}
.auth-block-name:hover,
.auth-block-name:focus { color: var(--color-primary); text-decoration: none; }
.auth-block-login {
    font-size: 12px;
    color: var(--color-text-muted, #6b7280);
}
.auth-block-unblock {
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 6px 12px;
    cursor: pointer;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-family: inherit;
    flex-shrink: 0;
}
.auth-block-unblock:hover {
    background: #fef2f2;
    color: #c0392b;
    border-color: #c0392b;
}
.auth-block-unblock:disabled { opacity: .6; cursor: wait; }

.auth-block-loadmore { text-align: center; padding-top: 8px; }
.auth-block-loadmore-btn {
    background: var(--color-primary);
    border: none;
    padding: 8px 18px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .15s;
}
.auth-block-loadmore-btn:hover:not(:disabled) { background: var(--color-primary-dark); }
.auth-block-loadmore-btn:disabled { opacity: .6; cursor: wait; }
.auth-section-title {
    margin: 0;
    font-size: 15px;
    color: var(--color-text);
}
.auth-section-title small {
    color: var(--color-text-muted, #6b7280);
    font-size: 12px;
    font-weight: 400;
    margin-left: 6px;
}
.auth-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}
.auth-form input:disabled {
    background: #f3f4f6;
    color: var(--color-text-muted, #6b7280);
    cursor: not-allowed;
}

.auth-avatar-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}
.auth-avatar-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.auth-avatar-wrap {
    position: relative;
    display: inline-block;
}
.auth-avatar-pick {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    cursor: pointer;
    display: inline-block;
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
}
.auth-avatar-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    min-width: 150px;
    display: none;
    z-index: 10;
}
.auth-avatar-popover::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
}
.auth-avatar-wrap.is-open .auth-avatar-popover {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.auth-avatar-popover .auth-avatar-action-btn {
    width: 100%;
    justify-content: center;
}

.auth-avatar-wrap[data-has-avatar="0"] [data-avatar-action="remove"],
.auth-avatar-wrap[data-has-avatar="0"] [data-avatar-action="change"] { display: none; }
.auth-avatar-wrap[data-has-avatar="1"] [data-avatar-action="upload"] { display: none; }
.auth-avatar-wrap.is-busy .auth-avatar-pick { pointer-events: none; opacity: .7; }
.auth-avatar-wrap.is-busy .auth-avatar-preview img,
.auth-avatar-wrap.is-busy .auth-avatar-preview .avatar { filter: brightness(.6); }
.auth-avatar-preview { display: block; }
.auth-avatar-preview img,
.auth-avatar-preview .avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border);
    background: #f3f4f6;
    display: block;
    transition: filter .15s;
}
.auth-avatar-pick:hover .auth-avatar-preview img,
.auth-avatar-pick:hover .auth-avatar-preview .avatar {
    filter: brightness(.92);
}
.auth-avatar-edit {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    font-size: 13px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
    transition: transform .15s;
    pointer-events: none;
}
.auth-avatar-pick:hover .auth-avatar-edit { transform: scale(1.08); }

.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 600px) {
    .auth-grid-2 { grid-template-columns: 1fr; }
}
.auth-avatar-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 4px 10px;
    background: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}
.auth-avatar-action-btn:hover { background: #f3f4f6; }
.auth-avatar-action-btn--remove {
    color: #c0392b;
    border-color: #c0392b;
}
.auth-avatar-action-btn--remove:hover { background: #fef2f2; }

.auth-avatar-action-btn--remove.is-marked {
    background: #c0392b;
    color: #fff;
}
.auth-avatar-action-btn--remove.is-marked:hover { background: #a8321f; }

.auth-error {
    color: #c0392b;
    font-size: 13px;
}

.auth-alert {
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 12px;
}
.auth-alert-success { background: #e6f6f1; color: #0f6b4f; border: 1px solid #b7e3d2; }
.auth-alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.auth-alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.account-verify {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.account-verify[hidden] { display: none; }
.account-verify-text { display: inline-flex; align-items: center; gap: 8px; }
.account-verify-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-primary);
    color: #fff;
    border: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
}
.account-verify-btn:hover { opacity: .9; }
.account-verify-btn:disabled { opacity: .6; cursor: default; }

.account-verify-btn[hidden],
.account-verify-wait[hidden] { display: none; }
.account-verify-msg { flex: 1 0 100%; font-size: 13px; color: #b91c1c; }
.account-verify-msg.is-success { color: #0f6b4f; }

.account-verify-wait {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
}

.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-right: 44px; }

.auth-input-wrap { position: relative; }
.auth-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted, #6b7280);
    font-size: 14px;
    pointer-events: none;
}
.auth-form .auth-input-wrap input,
.auth-form .auth-password-wrap input { padding-left: 38px; }
.auth-input-wrap:focus-within .auth-input-icon,
.auth-password-wrap:focus-within .auth-input-icon { color: var(--color-primary); }
.auth-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--color-text-muted, #6b7280);
    cursor: pointer;
    border-radius: 4px;
}
.auth-password-toggle:hover {
    color: var(--color-primary);
}

.auth-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--color-text);
    font-size: 14px;
}
.auth-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

.auth-link {
    color: var(--color-primary);
    text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

.auth-btn {
    width: 100%;
    padding: 12px;
    background: var(--color-primary);
    color: #fff;
    font-size: 15px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: filter .15s, transform .15s;
}
.auth-btn:hover  { filter: brightness(.92); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    filter: none;
    transform: none;
}

.auth-page .auth-btn {
    width: auto;
    align-self: center;
    padding: 10px 32px;
}

.auth-footer-text {
    text-align: center;
    margin: 4px 0 0;
    color: var(--color-text-muted, #6b7280);
    font-size: 14px;
}

.auth-footer-text--boxed {
    margin: 0;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
    background: color-mix(in srgb, var(--color-primary) 3%, transparent);
}

.auth-footer-text--line {
    display: flex;
    align-items: center;
    gap: 12px;
}
.auth-footer-text--line::before,
.auth-footer-text--line::after {
    content: "";
    flex: 1 1 0;
    height: 1px;
    background: var(--color-border);
}

/* ----- CAPTCHA ----- */
.auth-captcha {
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-captcha-img {
    height: 38px;
    width: 120px;
    object-fit: cover;
    user-select: none;
}
.auth-captcha-reload {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: 0;
    background: transparent;
    color: var(--color-text-muted, #6b7280);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}
.auth-captcha-reload:hover {
    color: var(--color-primary);
}

/* ----- Terms modal ----- */
.auth-terms-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.auth-terms-modal[hidden] { display: none; }
.auth-terms-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}
.auth-terms-dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    overflow: hidden;
}
.auth-terms-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
}
.auth-terms-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.auth-terms-close {
    background: transparent;
    border: 0;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.auth-terms-close:hover { background: rgba(0, 0, 0, .06); color: #111827; }
.auth-terms-body {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
    max-height: 60vh;
    overflow-y: auto;
}
.auth-terms-body ul { padding-left: 20px; margin: 8px 0; }
.auth-terms-body li { margin: 4px 0; }
.auth-terms-actions {
    padding: 12px 16px;
    border-top: 1px solid var(--color-border);
}

.account-avatar { line-height: 0; }
.account-avatar .auth-avatar-pick {
    width: 96px;
    height: 96px;
}
.account-avatar .auth-avatar-preview img,
.account-avatar .auth-avatar-preview .avatar {
    width: 96px;
    height: 96px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--color-border);
    background: #fff;
}

.account-avatar .auth-avatar-popover {
    left: 0;
    transform: none;
}
.account-avatar .auth-avatar-popover::before { left: 48px; }

.auth-avatar-wrap[data-avatar-verified="0"] .auth-avatar-edit { display: none; }
.auth-avatar-wrap[data-avatar-verified="0"] .auth-avatar-pick { cursor: default; }

.account-handle {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}
.account-avatar-hint {
    margin: 0;
    font-size: 12px;
    color: var(--color-text-muted);
}

.account-hero .auth-error {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 8px;
    margin: 0;
}

.account-card-body { padding: 16px; }

[data-account-panel="blocks"] .account-card-body { padding-top: 0; padding-bottom: 0; }

.account-page .auth-btn {
    width: auto;
    align-self: center;
    padding: 10px 32px;
}

.account-hero { position: relative; z-index: 5; }

.account-nav {
    display: flex;
    background: var(--color-surface);
}

.account-panel[hidden] { display: none; }
.account-nav-link {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--color-border);
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}

.account-nav-link + .account-nav-link { margin-left: -1px; }
.account-nav-link i { font-size: 14px; }
.account-nav-link:hover { background: var(--color-bg-alt); color: var(--color-text); }

.account-nav-link:hover,
.account-nav-link:focus { text-decoration: none; }
.account-nav-link.is-active {
    position: relative;
    z-index: 1;
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

@media (max-width: 600px) {
    .account-nav-link { padding: 10px 6px; font-size: 13px; }
    .account-nav-link span { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 420px) {
    .account-nav-link { gap: 0; }
    .account-nav-link span { display: none; }
    .account-nav-link i { font-size: 16px; }
}

@media (max-width: 768px) {
    .account-avatar .auth-avatar-pick { width: 84px; height: 84px; }
    .account-avatar .auth-avatar-preview img,
    .account-avatar .auth-avatar-preview .avatar { width: 84px; height: 84px; }
}
@media (max-width: 600px) {
    .account-avatar .auth-avatar-pick { width: 88px; height: 88px; }
    .account-avatar .auth-avatar-preview img,
    .account-avatar .auth-avatar-preview .avatar { width: 88px; height: 88px; }
    .account-card-body { padding: 14px 12px; }

    .account-hero .auth-error { position: static; text-align: center; margin-top: 6px; }
}

/* ----- Avatar cropper ----- */
.soicau-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.soicau-crop-modal[hidden] { display: none; }
.soicau-crop-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
}
.soicau-crop-dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.soicau-crop-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
}
.soicau-crop-head strong { font-size: 16px; }
.soicau-crop-x {
    background: transparent;
    border: 0;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.soicau-crop-x:hover { background: rgba(0, 0, 0, .06); color: #111827; }
.soicau-crop-body {
    padding: 14px 16px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.soicau-crop-stage {
    position: relative;
    overflow: hidden;
    user-select: none;
    touch-action: none;
    background: #111;
    line-height: 0;
}
.soicau-crop-img {
    display: block;
    max-width: 100%;
    max-height: min(60vh, 480px);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.soicau-crop-box {
    position: absolute;
    border: 2px dashed #fff;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55);
    box-sizing: border-box;
    cursor: move;
}
.soicau-crop-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 1px solid #111;
    box-sizing: border-box;
}
.soicau-crop-handle--nw { top: -8px;    left: -8px;    cursor: nwse-resize; }
.soicau-crop-handle--ne { top: -8px;    right: -8px;   cursor: nesw-resize; }
.soicau-crop-handle--sw { bottom: -8px; left: -8px;    cursor: nesw-resize; }
.soicau-crop-handle--se { bottom: -8px; right: -8px;   cursor: nwse-resize; }
.soicau-crop-hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}
.soicau-crop-foot {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--color-border);
}
.soicau-crop-btn {
    flex: 1;
    padding: 10px 14px;
    background: var(--color-primary);
    color: #fff;
    border: 0;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: filter .15s;
}
.soicau-crop-btn:hover { filter: brightness(.92); }
.soicau-crop-btn--ghost {
    background: #fff;
    color: #374151;
    border: 1px solid var(--color-border);
}
.soicau-crop-btn--ghost:hover { background: #f3f4f6; filter: none; }

.soicau-alert {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s, visibility .18s;
}
.soicau-alert.is-show { opacity: 1; visibility: visible; }
.soicau-alert-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    cursor: pointer;
}
.soicau-alert-box {
    position: relative;
    background: #fff;
    padding: 28px 24px 22px;
    width: min(420px, 92vw);
    max-width: 92vw;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .35);
    text-align: center;
    transform: scale(.7);
    transition: transform .22s cubic-bezier(.34, 1.56, .64, 1);
}
.soicau-alert.is-show .soicau-alert-box { transform: scale(1); }

.soicau-alert-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: #94a3b8;
    font-size: 16px;
    transition: background .15s, color .15s;
}
.soicau-alert-close:hover { background: #f1f5f9; color: #475569; }

.soicau-alert-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    border: 1px solid;
    animation: soicau-alert-icon-pop .35s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes soicau-alert-icon-pop {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.soicau-alert-icon--warning  { color: var(--soicau-warning, #f59e0b); border-color: color-mix(in srgb, var(--soicau-warning) 45%, #fff); background: color-mix(in srgb, var(--soicau-warning) 18%, #fff); }
.soicau-alert-icon--success  { color: var(--soicau-success, #16a34a); border-color: color-mix(in srgb, var(--soicau-success) 45%, #fff); background: color-mix(in srgb, var(--soicau-success) 18%, #fff); }
.soicau-alert-icon--error    { color: var(--soicau-danger, #dc2626);  border-color: color-mix(in srgb, var(--soicau-danger) 45%, #fff);  background: color-mix(in srgb, var(--soicau-danger) 18%, #fff); }
.soicau-alert-icon--info     { color: var(--soicau-info, #2563eb);    border-color: color-mix(in srgb, var(--soicau-info) 45%, #fff);    background: color-mix(in srgb, var(--soicau-info) 18%, #fff); }
.soicau-alert-icon--question { color: #6b7280; border-color: #d1d5db; background: #f3f4f6; }

.soicau-alert-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}
.soicau-alert-text {
    margin: 0 0 22px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}
.soicau-alert-input {
    width: 100%;
    margin: -10px 0 18px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
}
.soicau-alert-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}
.soicau-alert-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.soicau-alert-btn {
    min-width: 100px;
    padding: 9px 22px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s, background .15s;
    font-family: inherit;
}
.soicau-alert-btn:hover { filter: brightness(.93); }
.soicau-alert-btn--confirm {
    background: var(--color-primary);
    color: #fff;
}
.soicau-alert-btn--cancel {
    background: #e5e7eb;
    color: #374151;
}
.soicau-alert-btn--cancel:hover { background: #d1d5db; }

/* Wide modal (vd hướng dẫn chốt số) */
.soicau-alert--wide .soicau-alert-box {
    width: min(560px, 92vw);
    max-height: 85vh;
    overflow-y: auto;
    text-align: left;
}
.soicau-alert--wide .soicau-alert-icon { margin-bottom: 8px; }
.soicau-alert--wide .soicau-alert-title { text-align: center; }
.soicau-alert--wide .soicau-alert-actions { justify-content: center; }
.soicau-alert-body { text-align: left; margin: 0 0 18px; }
