/*
Theme Name: NQT Blog
Theme URI: https://nguyenquoctoan.vn
Author: Nguyễn Quốc Toản
Author URI: https://nguyenquoctoan.vn
Description: Theme blog kỹ thuật kiểu tạp chí: trang chủ có khối bài nổi bật, ô chủ đề, băng giới thiệu phần mềm, cột phải (tác giả, đọc nhiều, chuyên mục, từ khóa); trang bài có đường dẫn, mục lục, thanh tiến độ đọc, nút chia sẻ, hộp tác giả và bài liên quan; có chế độ sáng/tối. Font Be Vietnam Pro, tương thích trang mua hàng của plugin NQT License Manager.
Version: 2.1.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: nqt-blog
*/

/* ---------- Biến màu (sáng / tối) ---------- */
:root {
	--nqt-bg: var(--wp--preset--color--base);
	--nqt-card: var(--wp--preset--color--card);
	--nqt-surface: var(--wp--preset--color--surface);
	--nqt-line: var(--wp--preset--color--line);
	--nqt-ink: var(--wp--preset--color--ink);
	--nqt-text: var(--wp--preset--color--text);
	--nqt-muted: var(--wp--preset--color--muted);
	--nqt-primary: var(--wp--preset--color--primary);
	--nqt-primary-soft: var(--wp--preset--color--primary-soft);
	--nqt-burgundy: var(--wp--preset--color--burgundy);
	--nqt-night: var(--wp--preset--color--night);
	--nqt-grad: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
	--nqt-shadow: 0 1px 2px rgba(11, 21, 48, .05), 0 4px 14px rgba(11, 21, 48, .06);
	--nqt-shadow-lg: 0 2px 4px rgba(11, 21, 48, .06), 0 16px 38px rgba(30, 58, 138, .15);
	--nqt-radius: 18px;
	--nqt-header-h: 76px;
	color-scheme: light;
}
html[data-theme="dark"] {
	--wp--preset--color--base: #0a1020;
	--wp--preset--color--card: #111a2e;
	--wp--preset--color--surface: #0f1729;
	--wp--preset--color--line: #22304d;
	--wp--preset--color--ink: #eef2fa;
	--wp--preset--color--text: #cfd8e8;
	--wp--preset--color--muted: #97a3bb;
	--wp--preset--color--primary: #7cb0ff;
	--wp--preset--color--primary-soft: #18264b;
	--wp--preset--color--burgundy: #f2647b;
	--wp--preset--color--night: #060b18;
	--nqt-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
	--nqt-shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 38px rgba(0, 0, 0, .45);
	color-scheme: dark;
}

/* ---------- Chung ---------- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; transition: background-color .25s, color .25s; }
h1, h2, h3, h4 { text-wrap: balance; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
	outline: 2px solid var(--nqt-primary);
	outline-offset: 2px;
	border-radius: 6px;
}
.wp-site-blocks { padding-top: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.nqt-main { padding-bottom: 72px; }
button { font-family: inherit; }

/* Nút dùng chung */
.nqt-btn-cta .wp-block-button__link {
	background: var(--nqt-grad);
	color: #fff;
	border: 0;
	box-shadow: 0 4px 14px rgba(37, 99, 235, .3);
	transition: box-shadow .2s, transform .2s;
}
.nqt-btn-cta .wp-block-button__link:hover { box-shadow: 0 8px 22px rgba(124, 58, 237, .38); transform: translateY(-1px); text-decoration: none; }
.nqt-btn-light .wp-block-button__link { background: #fff; color: #0b1530; font-weight: 700; }
.nqt-btn-light .wp-block-button__link:hover { background: #e0e7ff; text-decoration: none; }

/* ---------- Header ---------- */
.nqt-header-wrap { position: sticky; top: 0; z-index: 50; }
body.admin-bar .nqt-header-wrap { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nqt-header-wrap { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .nqt-header-wrap { top: 0; } }
.nqt-header { position: relative; isolation: isolate; }
.nqt-header > * { margin: 0 !important; }

.nqt-topbar { background: var(--nqt-night); color: #b4bfd8; font-size: 0.8125rem; padding-inline: var(--wp--style--root--padding-left, 16px); }
.nqt-topbar__row {
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto;
	min-height: 36px;
	display: flex;
	align-items: center;
	gap: 18px;
}
.nqt-topbar__row > * { margin: 0 !important; }
.nqt-today { font-weight: 600; color: #e2e8f5; white-space: nowrap; }
.nqt-today::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; margin-right: 8px; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); vertical-align: 1px; }
.nqt-topbar__note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nqt-topbar__note a { color: #fff; font-weight: 600; }
.nqt-social { margin-left: auto !important; gap: 4px !important; }
.nqt-social .wp-social-link { color: #c9d2e6; }
.nqt-social .wp-social-link a { padding: 4px; }
.nqt-social .wp-social-link:hover { color: #fff; transform: none; }

.nqt-header__row {
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto !important;
	min-height: var(--nqt-header-h);
	display: flex;
	align-items: center;
	gap: 28px;
	padding-inline: var(--wp--style--root--padding-left, 16px);
	box-sizing: content-box;
}
.nqt-header__row::before {
	content: "";
	position: absolute;
	inset: 36px 0 0 0;
	z-index: -1;
	background: color-mix(in srgb, var(--nqt-card) 88%, transparent);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid var(--nqt-line);
}

.nqt-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.nqt-brand .wp-block-site-logo img { border-radius: 12px; }
.nqt-brand__text { display: flex; flex-direction: column; gap: 2px; }
.nqt-brand__text > * { margin: 0 !important; }
.nqt-brand__title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
.nqt-brand__title a { color: var(--nqt-burgundy); text-decoration: none; }
.nqt-brand__title a:hover { text-decoration: none; opacity: .88; }
.nqt-brand__tagline { font-size: 0.78rem; font-weight: 500; color: var(--nqt-muted); line-height: 1.3; max-width: 240px; }

.nqt-nav { font-size: 0.9375rem; font-weight: 600; }
.nqt-nav .wp-block-navigation__container { gap: 4px; }
.nqt-nav .wp-block-navigation-item__content { white-space: nowrap; color: var(--nqt-text); text-decoration: none; padding: 8px 11px !important; border-radius: 10px; transition: background .15s, color .15s; }
.nqt-nav .wp-block-navigation-item__content:hover,
.nqt-nav .current-menu-item > .wp-block-navigation-item__content,
.nqt-nav .wp-block-navigation-item__content[aria-current="page"] { background: var(--nqt-primary-soft); color: var(--nqt-primary); text-decoration: none; }

.nqt-header__tools { margin-left: auto !important; display: flex; align-items: center; gap: 10px; flex: none; }
.nqt-header__tools > * { margin: 0 !important; }
.nqt-search .wp-block-search__inside-wrapper {
	border: 1px solid var(--nqt-line);
	background: var(--nqt-surface);
	border-radius: 12px;
	padding: 2px;
	width: 180px;
	transition: border-color .15s, background .15s;
}
.nqt-search .wp-block-search__inside-wrapper:focus-within { border-color: var(--nqt-primary); background: var(--nqt-card); }
.nqt-search .wp-block-search__input { border: 0; background: transparent; font-size: 0.875rem; padding: 7px 10px; color: var(--nqt-ink); }
.nqt-search .wp-block-search__button { background: transparent; color: var(--nqt-muted); padding: 4px 8px; margin: 0; border-radius: 9px; }
.nqt-search .wp-block-search__button svg { fill: currentColor; }
.nqt-header .wp-block-buttons { margin: 0; }
.nqt-header .nqt-btn-cta .wp-block-button__link { padding: 10px 18px; font-size: 0.875rem; }

.nqt-theme-toggle {
	width: 40px;
	height: 40px;
	display: inline-grid;
	place-items: center;
	border-radius: 12px;
	border: 1px solid var(--nqt-line);
	background: var(--nqt-surface);
	color: var(--nqt-ink);
	cursor: pointer;
	padding: 0;
	transition: border-color .15s, color .15s;
}
.nqt-theme-toggle:hover { border-color: var(--nqt-primary); color: var(--nqt-primary); }
.nqt-theme-toggle__sun { display: none; }
html[data-theme="dark"] .nqt-theme-toggle__sun { display: block; }
html[data-theme="dark"] .nqt-theme-toggle__moon { display: none; }

/* Tài khoản khách (khối nqt/account): Đăng nhập · Đăng ký / tên + menu Kho Key, Đăng xuất */
.nqt-account { position: relative; display: inline-flex; align-items: center; gap: 4px; font-size: 0.875rem; font-weight: 600; }
.nqt-account__login, .nqt-account__reg { color: var(--nqt-ink); text-decoration: none; padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.nqt-account__login:hover, .nqt-account__reg:hover { background: var(--nqt-primary-soft); color: var(--nqt-primary); text-decoration: none; }
.nqt-account__reg { border: 1px solid var(--nqt-line); }
.nqt-account__me { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--nqt-line); border-radius: 12px; background: var(--nqt-surface); color: var(--nqt-ink); white-space: nowrap; }
.nqt-account__me::-webkit-details-marker { display: none; }
.nqt-account__me:hover, .nqt-account[open] .nqt-account__me { border-color: var(--nqt-primary); color: var(--nqt-primary); }
.nqt-account__name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.nqt-account__drop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px; padding: 6px; background: var(--nqt-card); border: 1px solid var(--nqt-line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.14); z-index: 60; display: flex; flex-direction: column; }
.nqt-account__drop a { padding: 9px 12px; border-radius: 9px; color: var(--nqt-ink); text-decoration: none; }
.nqt-account__drop a:hover { background: var(--nqt-primary-soft); color: var(--nqt-primary); text-decoration: none; }
@media (max-width: 600px) { .nqt-account__reg { display: none; } .nqt-account__name { max-width: 80px; } .nqt-account__me { height: 36px; padding: 0 9px; } }

@media (max-width: 1180px) { .nqt-search { display: none; } .nqt-brand__tagline { display: none; } }
/* Màn vừa: menu xuống hàng thứ hai, cuộn ngang được */
@media (min-width: 600px) and (max-width: 1060px) {
	.nqt-header__row { flex-wrap: wrap; row-gap: 0; padding-top: 12px; }
	.nqt-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
	.nqt-nav .wp-block-navigation__container { flex-wrap: nowrap; }
}
@media (max-width: 760px) { .nqt-topbar__note { display: none; } }
@media (max-width: 600px) {
	:root { --nqt-header-h: 62px; }
	.nqt-header__row { gap: 10px; }
	.nqt-header__tools { order: 2; gap: 8px; }
	.nqt-nav { order: 3; }
	.nqt-brand .wp-block-site-logo { display: none; }
	.nqt-brand__title { font-size: 1.3rem; }
	.nqt-theme-toggle { width: 36px; height: 36px; }
	.nqt-header .nqt-btn-cta .wp-block-button__link { padding: 8px 12px; font-size: 0.8125rem; }
}
@media (max-width: 420px) { .nqt-header .wp-block-buttons { display: none; } }
/* Menu di động (lớp phủ) */
.nqt-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px 20px; background: var(--nqt-card) !important; color: var(--nqt-ink) !important; }
.nqt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 4px; font-size: 1.125rem; }
.nqt-nav .wp-block-navigation__responsive-container-open, .nqt-nav .wp-block-navigation__responsive-container-close { color: var(--nqt-ink); }

/* ---------- Nhãn, dòng thông tin, đường dẫn ---------- */
.nqt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; font-size: 0.78rem; line-height: 1.4; }
.nqt-chips a {
	display: inline-block;
	font-weight: 700;
	color: var(--nqt-primary);
	background: var(--nqt-primary-soft);
	padding: 4px 11px;
	border-radius: 999px;
	text-decoration: none;
	letter-spacing: .01em;
	transition: background .15s, color .15s;
}
.nqt-chips a:hover { text-decoration: none; background: var(--nqt-grad); color: #fff; }
.nqt-chips .wp-block-post-terms__separator { display: none; }

.nqt-postmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.84rem; color: var(--nqt-muted); line-height: 1.5; }
.nqt-postmeta > * { margin: 0 !important; }
.nqt-postmeta > * + *:not(.wp-block-avatar)::before { content: "·"; margin-right: 8px; opacity: .7; }
.nqt-postmeta .wp-block-avatar + *::before { content: none; }
.nqt-postmeta a { color: inherit; text-decoration: none; }
.nqt-postmeta .wp-block-post-author-name { font-weight: 600; color: var(--nqt-text); }
.nqt-postmeta .wp-block-avatar img { border-radius: 50%; display: block; }

.nqt-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.8125rem; color: var(--nqt-muted); }
.nqt-crumbs li { margin: 0; display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.nqt-crumbs li + li::before { content: "›"; opacity: .6; }
.nqt-crumbs a { color: var(--nqt-muted); text-decoration: none; }
.nqt-crumbs a:hover { color: var(--nqt-primary); }
.nqt-crumbs [aria-current] { color: var(--nqt-text); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* ---------- Trang chủ: khối tạp chí (1 bài lớn + 3 bài nhỏ) ---------- */
.nqt-feature { padding-top: 30px; }
.nqt-feature .wp-block-post-template {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	grid-template-rows: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nqt-feature .wp-block-post-template > li { margin: 0; min-width: 0; }
.nqt-feature .wp-block-post-template > li:first-child { grid-row: 1 / span 3; }
.nqt-feature__item > * { margin: 0 !important; }
.nqt-feature__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nqt-feature__text > * { margin: 0 !important; }
.nqt-feature__title { font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
.nqt-feature__title a { color: var(--nqt-ink); text-decoration: none; }
.nqt-feature__title a:hover { color: var(--nqt-primary); }

/* Bài lớn: ảnh phủ kín, chữ nằm trên lớp tối */
.nqt-feature li:first-child .nqt-feature__item {
	position: relative;
	height: 100%;
	min-height: 460px;
	border-radius: 22px;
	overflow: hidden;
	background: var(--nqt-night);
	box-shadow: var(--nqt-shadow-lg);
}
.nqt-feature li:first-child .nqt-feature__img { position: absolute; inset: 0; height: 100%; }
.nqt-feature li:first-child .nqt-feature__img a { display: block; height: 100%; }
.nqt-feature li:first-child .nqt-feature__img img { aspect-ratio: auto !important; width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s; }
.nqt-feature li:first-child .nqt-feature__item:hover .nqt-feature__img img { transform: scale(1.04); }
.nqt-feature li:first-child .nqt-feature__text {
	position: absolute;
	inset: auto 0 0 0;
	padding: 90px 30px 28px;
	background: linear-gradient(180deg, transparent 0%, rgba(6, 11, 24, .72) 38%, rgba(6, 11, 24, .94) 100%);
	pointer-events: none;
}
.nqt-feature li:first-child .nqt-feature__text a { pointer-events: auto; }
.nqt-feature li:first-child .nqt-feature__title { font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.22; }
.nqt-feature li:first-child .nqt-feature__title a { color: #fff; }
.nqt-feature li:first-child .nqt-feature__title a:hover { color: #c7d2fe; }
.nqt-feature li:first-child .nqt-feature__excerpt { color: #cdd5e6; font-size: 1rem; line-height: 1.6; max-width: 60ch; }
.nqt-feature li:first-child .nqt-feature__excerpt p { margin: 0; }
.nqt-feature li:first-child .nqt-postmeta { color: #aeb9d2; }
.nqt-feature li:first-child .nqt-postmeta .wp-block-post-author-name { color: #fff; }
.nqt-feature li:first-child .nqt-chips a { background: var(--nqt-grad); color: #fff; }

/* Bài nhỏ: ảnh bên trái */
.nqt-feature li:not(:first-child) .nqt-feature__item {
	height: 100%;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	padding: 12px;
	background: var(--nqt-card);
	border: 1px solid var(--nqt-line);
	border-radius: var(--nqt-radius);
	box-shadow: var(--nqt-shadow);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.nqt-feature li:not(:first-child) .nqt-feature__item:hover { transform: translateY(-3px); box-shadow: var(--nqt-shadow-lg); border-color: color-mix(in srgb, var(--nqt-primary) 35%, var(--nqt-line)); }
.nqt-feature li:not(:first-child) .nqt-feature__img img { aspect-ratio: 4 / 3 !important; border-radius: 12px; }
.nqt-feature li:not(:first-child) .nqt-feature__img a { display: block; border-radius: 12px; overflow: hidden; }
.nqt-feature li:not(:first-child) .nqt-feature__title { font-size: 1rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nqt-feature li:not(:first-child) .nqt-feature__excerpt { display: none; }
.nqt-feature li:not(:first-child) .nqt-postmeta { font-size: 0.78rem; }
.nqt-feature li:not(:first-child) .nqt-postmeta .wp-block-post-author-name { display: none; }
.nqt-feature li:not(:first-child) .nqt-postmeta .wp-block-post-author-name + *::before { content: none; }
.nqt-feature li:not(:first-child) .nqt-chips { font-size: 0.72rem; }
.nqt-feature li:not(:first-child) .nqt-chips a { padding: 3px 9px; }

body.paged .nqt-feature, body.paged .nqt-topics, body.paged .nqt-promo { display: none; }

/* ---------- Ô chủ đề ---------- */
.nqt-topics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 28px !important;
}
.nqt-topics > * { margin: 0 !important; }
.nqt-topic {
	--c1: #2563eb; --c2: #60a5fa;
	--ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='20' x='5' y='2' rx='2'/%3E%3Cpath d='M12 18h.01'/%3E%3C/svg%3E");
	position: relative;
	background: var(--nqt-card);
	border: 1px solid var(--nqt-line);
	border-radius: var(--nqt-radius);
	box-shadow: var(--nqt-shadow);
	padding: 18px 18px 18px 76px;
	min-height: 86px;
	overflow: hidden;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.nqt-topic::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 18px;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	background: linear-gradient(135deg, var(--c1), var(--c2));
	box-shadow: 0 6px 16px color-mix(in srgb, var(--c1) 35%, transparent);
}
.nqt-topic::after {
	content: "";
	position: absolute;
	left: 30px;
	top: 30px;
	width: 20px;
	height: 20px;
	background: #fff;
	-webkit-mask: var(--ico) center / contain no-repeat;
	mask: var(--ico) center / contain no-repeat;
	pointer-events: none;
}
.nqt-topic:nth-child(2) {
	--c1: #7c3aed; --c2: #a78bfa;
	--ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='3' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E");
}
.nqt-topic:nth-child(3) {
	--c1: #0891b2; --c2: #22d3ee;
	--ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='16' height='16' x='4' y='4' rx='2'/%3E%3Crect width='6' height='6' x='9' y='9' rx='1'/%3E%3Cpath d='M15 2v2M15 20v2M2 15h2M2 9h2M20 15h2M20 9h2M9 2v2M9 20v2'/%3E%3C/svg%3E");
}
.nqt-topic:nth-child(4) {
	--c1: #be123c; --c2: #fb7185;
	--ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='5.5'/%3E%3Cpath d='m21 2-9.6 9.6M15.5 7.5l3 3L22 7l-3-3'/%3E%3C/svg%3E");
}
.nqt-topic:hover { transform: translateY(-3px); box-shadow: var(--nqt-shadow-lg); border-color: color-mix(in srgb, var(--c1) 40%, var(--nqt-line)); }
.nqt-topic > * { margin: 0 !important; }
.nqt-topic__name { font-weight: 800; font-size: 0.97rem; line-height: 1.35; }
.nqt-topic__name a { color: var(--nqt-ink); text-decoration: none; }
.nqt-topic__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.nqt-topic:hover .nqt-topic__name a { color: var(--c1); }
.nqt-topic__desc { font-size: 0.82rem; color: var(--nqt-muted); line-height: 1.5; margin-top: 3px !important; }

/* ---------- Băng giới thiệu phần mềm ---------- */
.nqt-promo {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	margin-top: 36px !important;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
	padding: 36px 40px;
	border-radius: 24px;
	color: #c9d2e6;
	background:
		radial-gradient(520px 300px at 0% 0%, rgba(37, 99, 235, .55), transparent 70%),
		radial-gradient(460px 300px at 100% 100%, rgba(124, 58, 237, .5), transparent 70%),
		radial-gradient(300px 200px at 70% 0%, rgba(190, 18, 60, .28), transparent 70%),
		#0b1530;
	box-shadow: var(--nqt-shadow-lg);
}
.nqt-promo > * { margin: 0 !important; }
.nqt-promo__text { display: flex; flex-direction: column; gap: 10px; }
.nqt-promo__text > * { margin: 0 !important; }
.nqt-promo__badge, .nqt-promo-card__badge {
	align-self: flex-start;
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(255, 255, 255, .12);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
	padding: 5px 12px;
	border-radius: 999px;
}
.nqt-promo__title { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; }
.nqt-promo__desc { font-size: 1rem; line-height: 1.65; max-width: 56ch; }
.nqt-promo__actions { margin-top: 8px !important; gap: 10px; }
.nqt-promo .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .4); }
.nqt-promo .is-style-outline .wp-block-button__link:hover { border-color: #fff; text-decoration: none; }
.nqt-promo__panel {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	border-radius: 18px;
	background: rgba(255, 255, 255, .07);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.nqt-promo__panel::before { content: "Lịch chạy hôm nay"; font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a5b4fc; }
.nqt-promo__panel > * { margin: 0 !important; }
.nqt-promo__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 12px;
	background: rgba(6, 11, 24, .45);
	font-size: 0.9rem;
}
.nqt-promo__row strong { color: #fff; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.nqt-promo__row strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.nqt-promo__row:nth-child(2) strong::before { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }
.nqt-promo__row:nth-child(3) strong::before { background: #fb7185; box-shadow: 0 0 0 3px rgba(251, 113, 133, .25); }
.nqt-promo__row span { font-size: 0.8125rem; color: #c7d2fe; background: rgba(124, 58, 237, .25); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

/* ---------- Bố cục 2 cột (nội dung + cột phải) ---------- */
.nqt-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 44px;
	margin-top: 44px !important;
	align-items: start;
}
.nqt-layout > * { margin: 0 !important; }
.nqt-layout__main { min-width: 0; }
.nqt-layout__main > * { margin: 0 !important; }
.nqt-sidebar { min-width: 0; }
.nqt-sidebar__inner { display: flex; flex-direction: column; gap: 22px; }
.nqt-sidebar__inner > * { margin: 0 !important; }

.nqt-sec { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; font-weight: 900; margin: 0 0 20px !important; }
.nqt-sec::before { content: ""; width: 6px; height: 26px; border-radius: 3px; background: var(--nqt-grad); flex: none; }
.nqt-sec::after { content: ""; flex: 1; height: 1px; background: var(--nqt-line); }

/* ---------- Lưới bài ---------- */
.nqt-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nqt-grid .wp-block-post-template > li { margin: 0; }
.nqt-post-card {
	display: flex;
	flex-direction: column;
	gap: 9px;
	height: 100%;
	box-sizing: border-box;
	background: var(--nqt-card);
	border: 1px solid var(--nqt-line);
	border-radius: var(--nqt-radius);
	box-shadow: var(--nqt-shadow);
	padding-bottom: 18px;
	overflow: hidden;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.nqt-post-card > * { margin: 0 !important; }
.nqt-post-card > :not(.nqt-post-card__img) { padding-inline: 20px; }
.nqt-post-card__img { margin-bottom: 8px !important; }
.nqt-post-card__img a { display: block; overflow: hidden; }
.nqt-post-card__img img { transition: transform .4s; }
.nqt-post-card:hover { transform: translateY(-4px); box-shadow: var(--nqt-shadow-lg); border-color: color-mix(in srgb, var(--nqt-primary) 35%, var(--nqt-line)); }
.nqt-post-card:hover .nqt-post-card__img img { transform: scale(1.04); }
.nqt-post-card__title { font-size: 1.125rem; font-weight: 800; line-height: 1.4; }
.nqt-post-card__title a { color: var(--nqt-ink); text-decoration: none; }
.nqt-post-card__title a:hover { color: var(--nqt-primary); }
.nqt-post-card__excerpt { font-size: 0.9rem; color: var(--nqt-muted); line-height: 1.6; }
.nqt-post-card__excerpt p { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nqt-post-card .nqt-postmeta { margin-top: auto !important; padding-top: 4px; font-size: 0.8125rem; }

.nqt-grid .wp-block-query-pagination { margin-top: 40px; gap: 6px; font-size: 0.9375rem; }
.nqt-grid .wp-block-query-pagination a,
.nqt-grid .wp-block-query-pagination .current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	box-sizing: border-box;
	border: 1px solid var(--nqt-line);
	border-radius: 12px;
	background: var(--nqt-card);
	color: var(--nqt-ink);
	text-decoration: none;
	font-weight: 600;
	margin: 0;
}
.nqt-grid .wp-block-query-pagination .current { background: var(--nqt-grad); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, .3); }
.nqt-grid .wp-block-query-pagination a:hover { border-color: var(--nqt-primary); color: var(--nqt-primary); }

/* ---------- Widget cột phải ---------- */
.nqt-widget {
	background: var(--nqt-card);
	border: 1px solid var(--nqt-line);
	border-radius: var(--nqt-radius);
	box-shadow: var(--nqt-shadow);
	padding: 18px 20px;
}
.nqt-widget > * { margin: 0 !important; }
.nqt-widget__title {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--nqt-ink);
	margin: 0 0 12px !important;
}
.nqt-widget__title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--nqt-grad); }

/* Danh sách bài nhỏ (đọc nhiều, liên quan) */
.nqt-plist { list-style: none; margin: 0; padding: 0; }
.nqt-plist li { margin: 0; }
.nqt-plist li + li { border-top: 1px dashed var(--nqt-line); }
.nqt-plist__link { box-sizing: border-box; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; color: var(--nqt-ink); text-decoration: none; padding: 10px 0; }
.nqt-plist__link:hover { text-decoration: none; }
.nqt-plist__link:hover .nqt-plist__title { color: var(--nqt-primary); }
.nqt-plist__img { width: 76px; height: 57px; object-fit: cover; border-radius: 10px; display: block; }
.nqt-plist__img--empty { background: var(--nqt-grad); opacity: .2; }
.nqt-plist__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nqt-plist__title { font-size: 0.875rem; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.nqt-plist__date { font-size: 0.75rem; color: var(--nqt-muted); }
.nqt-plist--numbered .nqt-plist__link { grid-template-columns: 30px 64px minmax(0, 1fr); }
.nqt-plist--numbered .nqt-plist__img { width: 64px; height: 48px; }
.nqt-plist__num {
	font-size: 1.6rem;
	font-weight: 900;
	line-height: 1;
	background: var(--nqt-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-align: center;
}

/* Thẻ tác giả */
.nqt-about {
	text-align: center;
	padding-top: 0;
	overflow: hidden;
	background:
		radial-gradient(160px 90px at 20% 0%, rgba(124, 58, 237, .55), transparent 80%),
		linear-gradient(135deg, #1e3a8a, #6d28d9) top / 100% 76px no-repeat,
		var(--nqt-card);
}
.nqt-about__photo { margin: 22px auto 12px !important; display: flex; justify-content: center; }
.nqt-about__photo img { width: 104px !important; height: 104px !important; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 5px var(--nqt-card), 0 10px 26px rgba(11, 21, 48, .25); }
.nqt-about__kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--nqt-muted); }
.nqt-about__name { color: var(--nqt-burgundy); font-size: 1.4rem; font-weight: 900; line-height: 1.3; margin-top: 2px !important; letter-spacing: -0.01em; }
.nqt-about__bio { font-size: 0.9rem; line-height: 1.6; color: var(--nqt-text); margin-top: 8px !important; }
.nqt-about__actions { justify-content: center; gap: 8px; margin-top: 14px !important; }
.nqt-about .wp-block-button__link { padding: 9px 18px; font-size: 0.875rem; }
.nqt-about .is-style-outline .wp-block-button__link { background: transparent; color: var(--nqt-ink); border: 1.5px solid var(--nqt-line); }
.nqt-about .is-style-outline .wp-block-button__link:hover { border-color: var(--nqt-primary); color: var(--nqt-primary); text-decoration: none; }

/* Thẻ quảng cáo phần mềm */
.nqt-promo-card {
	position: relative;
	overflow: hidden;
	padding: 22px 22px 24px;
	border-radius: var(--nqt-radius);
	color: #c9d2e6;
	background:
		radial-gradient(260px 180px at 100% 0%, rgba(124, 58, 237, .6), transparent 70%),
		radial-gradient(240px 180px at 0% 100%, rgba(37, 99, 235, .5), transparent 70%),
		#0b1530;
	box-shadow: var(--nqt-shadow-lg);
}
.nqt-promo-card > * { margin: 0 !important; }
.nqt-promo-card__title { color: #fff; font-size: 1.35rem; font-weight: 900; margin-top: 12px !important; }
.nqt-promo-card__desc { font-size: 0.9rem; line-height: 1.6; margin-top: 6px !important; }
.nqt-checks { list-style: none; padding: 0; margin: 12px 0 16px !important; display: flex; flex-direction: column; gap: 7px; font-size: 0.875rem; color: #e2e8f5; }
.nqt-checks li { margin: 0; display: flex; gap: 9px; align-items: flex-start; }
.nqt-checks li::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	border-radius: 50%;
	background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.nqt-promo-card .wp-block-buttons, .nqt-promo-card .wp-block-button { width: 100%; }
.nqt-promo-card .wp-block-button__link { width: 100%; box-sizing: border-box; text-align: center; }

/* Chuyên mục, từ khóa */
.nqt-widget--cats ul { list-style: none; margin: 0; padding: 0; }
.nqt-widget--cats li { margin: 0; padding: 9px 0; border-top: 1px dashed var(--nqt-line); color: var(--nqt-muted); font-size: 0.875rem; }
.nqt-widget--cats li:first-child { border-top: 0; padding-top: 2px; }
.nqt-widget--cats li a { color: var(--nqt-ink); font-weight: 600; text-decoration: none; }
.nqt-widget--cats li a::before { content: "›"; color: var(--nqt-primary); font-weight: 800; margin-right: 8px; }
.nqt-widget--cats li a:hover { color: var(--nqt-primary); }
.nqt-widget--cats .children { padding-left: 16px; margin-top: 6px; }
.nqt-widget--tags .wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; }
.nqt-widget--tags .wp-block-tag-cloud a,
.nqt-tags a {
	display: inline-block;
	font-size: 0.8125rem !important;
	font-weight: 600;
	color: var(--nqt-text);
	background: var(--nqt-surface);
	border: 1px solid var(--nqt-line);
	padding: 5px 12px;
	border-radius: 999px;
	text-decoration: none;
	margin: 0;
	transition: border-color .15s, color .15s;
}
.nqt-widget--tags .wp-block-tag-cloud a:hover, .nqt-tags a:hover { border-color: var(--nqt-primary); color: var(--nqt-primary); }

/* ---------- Đầu trang chuyên mục, tìm kiếm ---------- */
.nqt-archive-head { position: relative; isolation: isolate; padding: 40px 0 36px; display: flex; flex-direction: column; gap: 10px; }
.nqt-archive-head > * { margin: 0 !important; }
.nqt-archive-head::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	background:
		radial-gradient(520px 240px at 8% 0%, color-mix(in srgb, #2563eb 16%, transparent), transparent 70%),
		radial-gradient(460px 240px at 92% 100%, color-mix(in srgb, #7c3aed 14%, transparent), transparent 70%),
		var(--nqt-surface);
	border-bottom: 1px solid var(--nqt-line);
}
.nqt-archive-head .wp-block-query-title, .nqt-archive-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 900; letter-spacing: -0.015em; }
.nqt-archive-head .wp-block-term-description { color: var(--nqt-muted); max-width: 70ch; }
.nqt-archive-head .wp-block-term-description p { margin: 0; }
.nqt-archive-head .wp-block-search { max-width: 560px; }
.nqt-archive-head .wp-block-search__inside-wrapper { background: var(--nqt-card); border-radius: 14px; border-color: var(--nqt-line); }
.nqt-archive-head + .nqt-layout { margin-top: 36px !important; }

/* ---------- Trang bài ---------- */
.single .nqt-main { background: radial-gradient(1000px 380px at 50% -160px, color-mix(in srgb, #2563eb 14%, transparent), transparent 70%) no-repeat; }
.nqt-single {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	padding-top: 28px;
}
.nqt-single > * { margin: 0 !important; }
.nqt-single__main { min-width: 0; max-width: 800px; display: flex; flex-direction: column; gap: 14px; }
.nqt-single__main > * { margin: 0 !important; }
.nqt-single__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1.2; letter-spacing: -0.02em; }
.nqt-single__img { margin: 10px 0 8px !important; }
.nqt-single__img img { border-radius: 20px; box-shadow: var(--nqt-shadow-lg); }
.nqt-single__aside { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.nqt-single__aside > * { margin: 0 !important; }
.nqt-aside-sticky { position: sticky; top: calc(var(--nqt-header-h) + 60px); }
body.admin-bar .nqt-aside-sticky { top: calc(var(--nqt-header-h) + 92px); }

/* Chia sẻ */
.nqt-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nqt-share__label { font-size: 0.84rem; font-weight: 600; color: var(--nqt-muted); margin-right: 4px; }
.nqt-share__btn {
	position: relative;
	width: 38px;
	height: 38px;
	display: inline-grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--nqt-line);
	background: var(--nqt-card);
	color: var(--nqt-text);
	cursor: pointer;
	padding: 0;
	text-decoration: none;
	transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.nqt-share__btn:hover { color: #fff; border-color: transparent; transform: translateY(-2px); text-decoration: none; }
.nqt-share__btn--facebook:hover { background: #1877f2; }
.nqt-share__btn--telegram:hover { background: #229ed9; }
.nqt-share__btn--x:hover { background: #0f172a; }
.nqt-share__btn--copy:hover { background: var(--nqt-primary); }
.nqt-share__done {
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	font-size: 0.75rem;
	font-weight: 600;
	background: var(--nqt-ink);
	color: var(--nqt-bg);
	padding: 3px 8px;
	border-radius: 6px;
}
.nqt-content + .nqt-tags, .nqt-content + .nqt-share { margin-top: 10px !important; }
.nqt-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 0.84rem; color: var(--nqt-muted); }
.nqt-tags .wp-block-post-terms__separator { display: none; }

/* Hộp tác giả */
.nqt-authorbox {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	margin-top: 16px !important;
	padding: 22px;
	border-radius: var(--nqt-radius);
	background: linear-gradient(135deg, color-mix(in srgb, #2563eb 8%, var(--nqt-card)), color-mix(in srgb, #7c3aed 8%, var(--nqt-card)));
	border: 1px solid var(--nqt-line);
}
.nqt-authorbox > * { margin: 0 !important; }
.nqt-authorbox .wp-block-avatar img { border-radius: 50%; display: block; box-shadow: 0 0 0 3px var(--nqt-card); }
.nqt-authorbox__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nqt-authorbox__text > * { margin: 0 !important; }
.nqt-authorbox__kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nqt-muted); }
.nqt-authorbox__name { font-size: 1.2rem; font-weight: 900; }
.nqt-authorbox__name a { color: var(--nqt-burgundy); text-decoration: none; }
.nqt-authorbox__bio { font-size: 0.92rem; color: var(--nqt-text); line-height: 1.6; margin-top: 4px !important; }

/* Nội dung bài. Phần do plugin NQT License vẽ (.nqt-lm) được loại ra để giữ kiểu của plugin. */
.nqt-content { font-size: 1.125rem; line-height: 1.8; color: var(--nqt-text); }
.nqt-content > * { margin-block: 0 1.1em; }
.nqt-content h2, .nqt-content h3, .nqt-content h4 { color: var(--nqt-ink); scroll-margin-top: calc(var(--nqt-header-h) + 60px); }
.nqt-content h2 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); margin: 1.7em 0 0.6em; padding-bottom: 8px; border-bottom: 2px solid var(--nqt-line); position: relative; }
.nqt-content h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--nqt-grad); }
.nqt-content h3 { font-size: 1.25rem; margin: 1.4em 0 0.5em; }
.nqt-content img:not(.nqt-lm *) { border-radius: 14px; height: auto; }
.nqt-content figure { margin-inline: 0; }
.nqt-content figcaption { font-size: 0.875rem; color: var(--nqt-muted); text-align: center; }
.nqt-content ul:not(.nqt-lm *), .nqt-content ol:not(.nqt-lm *) { padding-left: 1.4em; }
.nqt-content li:not(.nqt-lm *) + li { margin-top: 0.3em; }
.nqt-content li:not(.nqt-lm *)::marker { color: var(--nqt-primary); }
.nqt-content blockquote, .nqt-content .wp-block-quote {
	background: var(--nqt-primary-soft);
	border: 0;
	border-radius: 14px;
	box-shadow: inset 4px 0 0 var(--nqt-primary);
	padding: 16px 20px 16px 24px;
	margin-inline: 0;
	font-size: 1rem;
	line-height: 1.65;
}
.nqt-content blockquote p { margin: 0 0 .5em; }
.nqt-content blockquote p:last-child { margin: 0; }
.nqt-content blockquote cite { font-size: 0.875rem; color: var(--nqt-muted); font-style: normal; }
.nqt-content code { font-family: var(--wp--preset--font-family--mono); font-size: 0.9em; }
.nqt-content :not(pre) > code { background: var(--nqt-primary-soft); color: var(--nqt-primary); border-radius: 6px; padding: 1px 6px; }
.nqt-content pre { overflow-x: auto; box-shadow: var(--nqt-shadow-lg); border: 1px solid rgba(255, 255, 255, .06); }
.nqt-content pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.nqt-content table:not(.nqt-lm *) { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9375rem; border: 1px solid var(--nqt-line); border-radius: 14px; overflow: hidden; }
.nqt-content .wp-block-table { overflow-x: auto; }
.nqt-content th:not(.nqt-lm *), .nqt-content td:not(.nqt-lm *) { border: 0; border-top: 1px solid var(--nqt-line); padding: 10px 14px; text-align: left; vertical-align: top; }
.nqt-content tr:not(.nqt-lm *):first-child > * { border-top: 0; }
.nqt-content th:not(.nqt-lm *), .nqt-content thead td:not(.nqt-lm *) { background: var(--nqt-surface); font-weight: 700; color: var(--nqt-ink); }
.nqt-content thead { border-bottom: 0; }
.nqt-content tbody tr:nth-child(even) td:not(.nqt-lm *) { background: color-mix(in srgb, var(--nqt-surface) 55%, transparent); }
.nqt-content a:not(.nqt-lm *) { color: var(--nqt-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nqt-content hr { border: 0; border-top: 1px solid var(--nqt-line); }

/* Mục lục */
.nqt-toc ol { list-style: none; margin: 0; padding: 0; }
.nqt-toc li { margin: 0; }
.nqt-toc a { display: block; color: var(--nqt-muted); text-decoration: none; padding: 6px 0 6px 10px; line-height: 1.45; font-size: 0.9rem; border-radius: 6px; transition: color .15s; }
.nqt-toc a:hover { color: var(--nqt-ink); }
.nqt-toc a.is-active { color: var(--nqt-primary); font-weight: 700; box-shadow: inset 3px 0 0 var(--nqt-primary); background: var(--nqt-primary-soft); }
.nqt-toc .nqt-toc__sub a { padding-left: 24px; font-size: 0.84rem; }
.nqt-toc--side { max-height: calc(100vh - var(--nqt-header-h) - 100px); overflow-y: auto; scrollbar-width: thin; box-sizing: border-box; }
.nqt-toc--inline { display: none; background: var(--nqt-card); border: 1px solid var(--nqt-line); border-radius: 14px; padding: 0 16px; box-shadow: var(--nqt-shadow); }
.nqt-toc--inline summary { cursor: pointer; font-weight: 700; font-size: 0.92rem; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; color: var(--nqt-ink); }
.nqt-toc--inline summary::-webkit-details-marker { display: none; }
.nqt-toc--inline summary::after { content: "▾"; color: var(--nqt-muted); }
.nqt-toc--inline[open] summary::after { content: "▴"; }
.nqt-toc--inline ol { padding-bottom: 10px; }

/* Bài liên quan cuối bài (màn nhỏ) */
.nqt-related--inline { display: none; }
.nqt-related--inline .nqt-plist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.nqt-related--inline .nqt-plist li + li { border-top: 0; }
.nqt-related--inline .nqt-plist li { border-bottom: 1px dashed var(--nqt-line); }

/* Bài trước / bài sau */
.nqt-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px !important; }
.nqt-post-nav > * { margin: 0 !important; }
.nqt-post-nav a { display: block; box-sizing: border-box; background: var(--nqt-card); border: 1px solid var(--nqt-line); border-radius: 14px; padding: 14px 18px; color: var(--nqt-ink); text-decoration: none; font-weight: 700; font-size: 0.9375rem; line-height: 1.45; height: 100%; box-shadow: var(--nqt-shadow); transition: border-color .2s, box-shadow .2s; }
.nqt-post-nav a:hover { border-color: var(--nqt-primary); box-shadow: var(--nqt-shadow-lg); color: var(--nqt-primary); }
.nqt-post-nav .post-navigation-link__label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--nqt-muted); margin-bottom: 4px; }
.nqt-post-nav .post-navigation-link-next { text-align: right; }
.nqt-post-nav .post-navigation-link-next:only-child { grid-column: 2; }

/* Bình luận */
.nqt-comments { margin-top: 24px !important; }
.nqt-comments .comment-reply-title { font-size: 1.3rem; font-weight: 900; }
.nqt-comments input[type="text"], .nqt-comments input[type="email"], .nqt-comments input[type="url"], .nqt-comments textarea {
	width: 100%;
	box-sizing: border-box;
	background: var(--nqt-card);
	color: var(--nqt-ink);
	border: 1px solid var(--nqt-line);
	border-radius: 12px;
	padding: 10px 14px;
	font: inherit;
}
.nqt-comments input:focus, .nqt-comments textarea:focus { outline: 2px solid var(--nqt-primary); outline-offset: 1px; border-color: transparent; }
.nqt-comments .form-submit input[type="submit"] { background: var(--nqt-grad); color: #fff; border: 0; border-radius: 12px; padding: 11px 22px; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- Trang tĩnh, 404 ---------- */
.nqt-page { padding-top: 32px; }
.nqt-page > .nqt-crumbs { margin-bottom: 10px !important; }
.nqt-page .wp-block-post-title { font-size: var(--wp--preset--font-size--xx-large); font-weight: 900; }
.nqt-404 { padding: 64px 0 24px; display: flex; flex-direction: column; gap: 14px; }
.nqt-404 > * { margin: 0 !important; }

/* ---------- Footer ---------- */
.nqt-footer {
	color: #aeb9d2;
	font-size: 0.9rem;
	padding-inline: var(--wp--style--root--padding-left, 16px);
	background:
		var(--nqt-grad) top / 100% 3px no-repeat,
		radial-gradient(700px 260px at 90% 110%, rgba(124, 58, 237, .32), transparent 70%),
		radial-gradient(600px 240px at 0% -10%, rgba(37, 99, 235, .28), transparent 70%),
		#070c1a;
}
.nqt-footer > * { margin: 0 !important; }
.nqt-footer__cols {
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto !important;
	padding-block: 52px 36px;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
	gap: 36px;
}
.nqt-footer__cols > * { margin: 0 !important; }
.nqt-footer__about, .nqt-footer__col { display: flex; flex-direction: column; gap: 12px; }
.nqt-footer__about > *, .nqt-footer__col > * { margin: 0 !important; }
.nqt-footer__about p { line-height: 1.65; max-width: 40ch; }
.nqt-footer__brand { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; }
.nqt-footer__brand a { color: #f2647b; text-decoration: none; }
.nqt-footer__title { color: #fff; font-weight: 800; font-size: 0.8rem; letter-spacing: .09em; text-transform: uppercase; }
.nqt-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.nqt-footer__links li { margin: 0; }
.nqt-footer a { color: #dbe3f3; text-decoration: none; transition: color .15s; }
.nqt-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.nqt-footer .nqt-social { margin-left: 0 !important; }
.nqt-footer .nqt-btn-cta .wp-block-button__link { padding: 10px 18px; font-size: 0.875rem; color: #fff; }
.nqt-footer .nqt-btn-cta .wp-block-button__link:hover { text-decoration: none; }
.nqt-footer__bottom {
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto !important;
	padding-block: 18px 22px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	font-size: 0.84rem;
}
.nqt-footer__bottom > * { margin: 0 !important; }

/* ---------- Nút lên đầu trang, thanh tiến độ đọc ---------- */
.nqt-totop {
	position: fixed;
	right: 20px;
	bottom: 88px;
	z-index: 60;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 14px;
	background: var(--nqt-grad);
	color: #fff;
	box-shadow: 0 8px 22px rgba(37, 99, 235, .35);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.nqt-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.nqt-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 100000;
	background: linear-gradient(90deg, #2563eb, #7c3aed, #f2647b);
	transform: scaleX(0);
	transform-origin: left;
	pointer-events: none;
}

/* ---------- Plugin NQT License Manager ([nqt_checkout], [nqt_my_keys]) ---------- */
.nqt-lm {
	--nqt-accent: var(--nqt-primary);
	--nqt-border: var(--nqt-line);
	--nqt-soft: var(--nqt-surface);
	font-family: inherit;
	color: var(--nqt-text);
}
.nqt-lm .nqt-card { border-radius: 16px; background: var(--nqt-card); }
/* Trang có khung mua hàng / kho key: nới rộng hơn trang đọc chữ thường */
.nqt-page:has(.nqt-lm) > *,
.nqt-page:has(.nqt-lm) .nqt-content > * { max-width: min(1080px, 100%) !important; }
.nqt-lm .nqt-input { background: var(--nqt-card); color: var(--nqt-ink); font-family: inherit; }
.nqt-lm .nqt-input:focus { outline: 2px solid var(--nqt-primary); outline-offset: 1px; border-color: transparent; }

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 1100px) {
	.nqt-layout { grid-template-columns: 1fr; gap: 40px; }
	.nqt-sidebar__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.nqt-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
	.nqt-single { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
	.nqt-single__main { max-width: none; }
	.nqt-single__aside { display: none; }
	.nqt-toc--inline { display: block; }
	.nqt-related--inline { display: block; }
	.nqt-content { font-size: 1.0625rem; }
}
@media (max-width: 900px) {
	.nqt-feature .wp-block-post-template { grid-template-columns: 1fr; grid-template-rows: none; }
	.nqt-feature .wp-block-post-template > li:first-child { grid-row: auto; }
	.nqt-feature li:first-child .nqt-feature__item { min-height: 380px; }
	.nqt-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nqt-promo { grid-template-columns: 1fr; padding: 28px 24px; }
}
@media (max-width: 640px) {
	.nqt-feature { padding-top: 16px; }
	.nqt-feature li:first-child .nqt-feature__item { min-height: 340px; border-radius: 18px; }
	.nqt-feature li:first-child .nqt-feature__text { padding: 70px 18px 18px; }
	.nqt-feature li:first-child .nqt-feature__excerpt { display: none; }
	.nqt-feature li:not(:first-child) .nqt-feature__item { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px; }
	.nqt-topics { gap: 10px; margin-top: 18px !important; }
	.nqt-topic { padding: 12px 12px 12px 56px; min-height: 0; }
	.nqt-topic::before { left: 12px; top: 12px; width: 34px; height: 34px; border-radius: 10px; }
	.nqt-topic::after { left: 20px; top: 20px; width: 18px; height: 18px; }
	.nqt-topic__name { font-size: 0.88rem; }
	.nqt-topic__desc { display: none; }
	.nqt-promo { margin-top: 24px !important; border-radius: 20px; }
	.nqt-promo__panel { display: none; }
	.nqt-layout { margin-top: 30px !important; }
	.nqt-sidebar__inner { grid-template-columns: 1fr; }
	.nqt-grid .wp-block-post-template { grid-template-columns: 1fr; gap: 0; }
	.nqt-grid .wp-block-post-template > li { border-top: 1px solid var(--nqt-line); padding: 14px 0; }
	.nqt-grid .wp-block-post-template > li:first-child { border-top: 0; padding-top: 0; }
	.nqt-post-card, .nqt-post-card:hover { display: grid; grid-template-columns: minmax(0, 1fr) 108px; column-gap: 14px; row-gap: 4px; align-items: start; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; transform: none; overflow: visible; }
	.nqt-post-card > :not(.nqt-post-card__img) { grid-column: 1; padding-inline: 0; }
	.nqt-post-card__img { grid-column: 2; grid-row: 1 / span 4; margin: 0 !important; }
	.nqt-post-card__img a { border-radius: 12px; }
	.nqt-post-card__img img { aspect-ratio: 4 / 3 !important; border-radius: 12px; }
	.nqt-post-card .nqt-chips { font-size: 0.72rem; }
	.nqt-post-card .nqt-chips a { background: none; padding: 0; }
	.nqt-post-card__title { font-size: 1rem; }
	.nqt-post-card__excerpt { display: none; }
	.nqt-post-card .nqt-postmeta { margin-top: 0 !important; font-size: 0.78rem; }
	.nqt-post-card .nqt-postmeta .wp-block-post-author-name { display: none; }
	.nqt-post-card .nqt-postmeta .wp-block-post-author-name + *::before { content: none; }
	.nqt-archive-head { padding: 26px 0 22px; }
	.nqt-related--inline .nqt-plist { grid-template-columns: 1fr; }
	.nqt-post-nav { grid-template-columns: 1fr; }
	.nqt-post-nav .post-navigation-link-next:only-child { grid-column: 1; }
	.nqt-single__img { margin-inline: calc(-1 * clamp(16px, 4vw, 40px)) !important; }
	.nqt-single__img img { border-radius: 0; box-shadow: none; }
	.nqt-authorbox { padding: 18px; gap: 14px; }
	.nqt-footer__cols { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 28px; }
	.nqt-totop { right: 14px; bottom: 80px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0s !important; }
	.nqt-post-card:hover, .nqt-topic:hover, .nqt-feature li:not(:first-child) .nqt-feature__item:hover, .nqt-share__btn:hover,
	.nqt-btn-cta .wp-block-button__link:hover, .nqt-post-card:hover .nqt-post-card__img img,
	.nqt-feature li:first-child .nqt-feature__item:hover .nqt-feature__img img { transform: none; }
}
