/**
 * VikingPOST M15 — Public landing page styles.
 * Standalone CSS, không inherit theme (chỉ font kế thừa).
 *
 * CSS variables --vp-gradient-from / --vp-gradient-to inject inline
 * theo settings admin.
 *
 * @package VikingPOST
 */

/* ─────────────────────── Reset + scope ─────────────────────── */
.vp-landing,
.vp-landing * {
	box-sizing: border-box;
}

.vp-landing {
	--vp-gradient-from: #5B4CFC;
	--vp-gradient-to: #9333EA;
	--vp-text: #1f2937;
	--vp-text-muted: #6b7280;
	--vp-bg: #ffffff;
	--vp-bg-alt: #f9fafb;
	--vp-border: #e5e7eb;
	--vp-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
	--vp-shadow-lg: 0 20px 50px -10px rgba(91, 76, 252, 0.25);
	--vp-radius: 12px;
	--vp-radius-lg: 20px;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--vp-text);
	line-height: 1.6;
	background: var(--vp-bg);
	min-height: 100vh;
}

.vp-landing[dir="rtl"] {
	text-align: right;
}

.vp-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.vp-section {
	padding: 80px 0;
}

.vp-section:nth-child(even) {
	background: var(--vp-bg-alt);
}

.vp-section__title {
	font-size: 2.5rem;
	font-weight: 800;
	text-align: center;
	margin: 0 0 16px;
	background: linear-gradient(135deg, var(--vp-gradient-from), var(--vp-gradient-to));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.vp-section__subtitle {
	text-align: center;
	color: var(--vp-text-muted);
	font-size: 1.125rem;
	margin: 0 auto 48px;
	max-width: 700px;
}

/* ─────────────────────── Buttons ─────────────────────── */
.vp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: var(--vp-radius);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.vp-btn--primary {
	background: linear-gradient(135deg, var(--vp-gradient-from), var(--vp-gradient-to));
	color: #fff;
	box-shadow: var(--vp-shadow-lg);
}

.vp-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 25px 60px -10px rgba(91, 76, 252, 0.4);
}

.vp-btn--secondary {
	background: #fff;
	color: var(--vp-gradient-from);
	border-color: var(--vp-gradient-from);
}

.vp-btn--secondary:hover {
	background: var(--vp-gradient-from);
	color: #fff;
}

.vp-btn--outline {
	background: transparent;
	color: var(--vp-text);
	border-color: var(--vp-border);
}

.vp-btn--outline:hover {
	border-color: var(--vp-gradient-from);
	color: var(--vp-gradient-from);
}

.vp-btn--large {
	padding: 18px 36px;
	font-size: 1.125rem;
}

.vp-btn--block {
	display: flex;
	width: 100%;
}

.vp-btn__meta {
	font-size: 0.85rem;
	opacity: 0.85;
	font-weight: 400;
	margin-left: 8px;
}

.vp-btn:disabled,
.vp-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* ─────────────────────── Lang switcher ─────────────────────── */
.vp-lang-switcher {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 1000;
}

.vp-landing[dir="rtl"] .vp-lang-switcher {
	right: auto;
	left: 20px;
}

.vp-lang-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #fff;
	border: 1px solid var(--vp-border);
	border-radius: 24px;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.9rem;
	box-shadow: var(--vp-shadow);
}

.vp-lang-switcher__menu {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 200px;
	max-height: 400px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--vp-border);
	border-radius: var(--vp-radius);
	box-shadow: var(--vp-shadow);
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.vp-lang-switcher.is-open .vp-lang-switcher__menu {
	display: block;
}

.vp-lang-switcher__menu li a {
	display: block;
	padding: 10px 16px;
	color: var(--vp-text);
	text-decoration: none;
	font-size: 0.95rem;
}

.vp-lang-switcher__menu li a:hover {
	background: var(--vp-bg-alt);
	color: var(--vp-gradient-from);
}

.vp-lang-switcher__menu li[aria-selected="true"] a {
	background: var(--vp-bg-alt);
	font-weight: 600;
	color: var(--vp-gradient-from);
}

/* ─────────────────────── Hero ─────────────────────── */
.vp-hero {
	/* v2.0.48 Bug #39: Bỏ gradient `rgba(91,76,252,0.05)→transparent` —
	 * gradient 5% opacity tạo "vệt khác màu" 120px đầu trang dù body bg trắng.
	 * Inherit body bg đồng nhất với footer (cùng `--vp-bg-edge`). */
	background: transparent;
	padding-top: 60px; /* giảm từ 120px — bớt empty area trên cùng */
	text-align: center;
}

.vp-hero__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 32px;
}

.vp-hero__logo {
	font-size: 2rem;
}

.vp-hero__brand-name {
	background: linear-gradient(135deg, var(--vp-gradient-from), var(--vp-gradient-to));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.vp-hero__title {
	font-size: 3.5rem;
	font-weight: 900;
	line-height: 1.15;
	margin: 0 0 24px;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.vp-hero__subtitle {
	font-size: 1.25rem;
	color: var(--vp-text-muted);
	max-width: 720px;
	margin: 0 auto 40px;
}

.vp-hero__cta {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.vp-hero__badges {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

.vp-hero__badge {
	padding: 8px 16px;
	background: #fff;
	border: 1px solid var(--vp-border);
	border-radius: 999px;
	font-size: 0.9rem;
	color: var(--vp-text-muted);
	box-shadow: var(--vp-shadow);
}

/* ─────────────────────── Features ─────────────────────── */
.vp-features__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
	gap: 32px;
}

.vp-feature-card {
	background: #fff;
	border: 1px solid var(--vp-border);
	border-radius: var(--vp-radius-lg);
	padding: 40px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.vp-feature-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--vp-gradient-from), var(--vp-gradient-to));
}

.vp-feature-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--vp-shadow-lg);
}

.vp-feature-card__icon {
	font-size: 3rem;
	margin-bottom: 16px;
}

.vp-feature-card__title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 12px;
}

.vp-feature-card__desc {
	color: var(--vp-text-muted);
	margin: 0 0 24px;
}

.vp-feature-card__list {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
}

.vp-feature-card__list li {
	padding: 6px 0;
	color: var(--vp-text);
}

.vp-feature-card__credit {
	padding: 12px 16px;
	background: var(--vp-bg-alt);
	border-radius: var(--vp-radius);
	font-size: 0.9rem;
	color: var(--vp-text-muted);
}

.vp-feature-card__credit strong {
	color: var(--vp-gradient-from);
	font-size: 1rem;
}

/* ─────────────────────── Pricing ─────────────────────── */
.vp-pricing__free {
	text-align: center;
	padding: 12px 24px;
	background: linear-gradient(135deg, rgba(91, 76, 252, 0.1), rgba(147, 51, 234, 0.1));
	border-radius: 999px;
	display: inline-block;
	margin: 0 auto 40px;
	font-weight: 600;
	color: var(--vp-gradient-from);
}

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

.vp-pricing-card {
	background: #fff;
	border: 2px solid var(--vp-border);
	border-radius: var(--vp-radius-lg);
	padding: 32px 24px;
	text-align: center;
	position: relative;
	transition: all 0.3s ease;
}

.vp-pricing-card:hover {
	border-color: var(--vp-gradient-from);
	transform: translateY(-4px);
}

.vp-pricing-card--popular {
	border-color: var(--vp-gradient-from);
	background: linear-gradient(180deg, #fff, rgba(91, 76, 252, 0.03));
	transform: scale(1.05);
	box-shadow: var(--vp-shadow-lg);
}

.vp-pricing-card__badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, var(--vp-gradient-from), var(--vp-gradient-to));
	color: #fff;
	padding: 4px 16px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	white-space: nowrap;
}

.vp-pricing-card__name {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 16px;
}

.vp-pricing-card__price {
	font-size: 2rem;
	font-weight: 900;
	margin-bottom: 8px;
	background: linear-gradient(135deg, var(--vp-gradient-from), var(--vp-gradient-to));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.vp-pricing-card__price-currency {
	font-size: 0.875rem;
	color: var(--vp-text-muted);
	font-weight: 400;
	-webkit-text-fill-color: var(--vp-text-muted);
}

.vp-pricing-card__credits {
	font-size: 1rem;
	margin-bottom: 16px;
	color: var(--vp-text);
}

.vp-pricing-card__credits strong {
	font-size: 1.5rem;
	color: var(--vp-gradient-from);
}

.vp-pricing-card__desc {
	font-size: 0.85rem;
	color: var(--vp-text-muted);
	margin: 0 0 24px;
	min-height: 60px;
}

/* Buy button loading/error state — hiển thị spinner khi fetch checkout. */
.vp-pricing-card__buy {
	position: relative;
	cursor: pointer;
	transition: opacity .15s ease;
}
.vp-pricing-card__buy[disabled] {
	cursor: wait;
	opacity: .7;
}
.vp-pricing-card__buy-spinner {
	display: none;
	width: 14px;
	height: 14px;
	margin-left: 8px;
	vertical-align: -3px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: vp-buy-spin .7s linear infinite;
}
.vp-pricing-card__buy.is-loading .vp-pricing-card__buy-spinner {
	display: inline-block;
}
@keyframes vp-buy-spin {
	to { transform: rotate(360deg); }
}
.vp-pricing-card__error {
	margin-top: 10px;
	padding: 8px 10px;
	background: #fee2e2;
	color: #991b1b;
	border-radius: 6px;
	font-size: 0.8rem;
	text-align: center;
	line-height: 1.4;
}

.vp-pricing__note {
	text-align: center;
	color: var(--vp-text-muted);
	font-size: 0.9rem;
	margin: 0;
}

/* ─────────────────────── FAQ ─────────────────────── */
.vp-faq__list {
	max-width: 800px;
	margin: 0 auto;
}

.vp-faq__item {
	background: #fff;
	border: 1px solid var(--vp-border);
	border-radius: var(--vp-radius);
	margin-bottom: 12px;
	overflow: hidden;
	transition: all 0.2s ease;
}

.vp-faq__item[open] {
	box-shadow: var(--vp-shadow);
	border-color: var(--vp-gradient-from);
}

.vp-faq__question {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	cursor: pointer;
	font-weight: 600;
	list-style: none;
}

.vp-faq__question::-webkit-details-marker { display: none; }

.vp-faq__q-number {
	color: var(--vp-gradient-from);
	font-family: monospace;
	font-size: 0.9rem;
}

.vp-faq__q-text {
	flex: 1;
}

.vp-faq__q-icon {
	transition: transform 0.2s ease;
	font-size: 1.5rem;
	color: var(--vp-gradient-from);
}

.vp-faq__item[open] .vp-faq__q-icon {
	transform: rotate(45deg);
}

.vp-faq__answer {
	padding: 0 24px 24px;
	color: var(--vp-text-muted);
}

/* ─────────────────────── Testimonials ─────────────────────── */
.vp-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}

.vp-testimonial {
	background: #fff;
	border: 1px solid var(--vp-border);
	border-radius: var(--vp-radius-lg);
	padding: 32px;
	transition: all 0.2s ease;
}

.vp-testimonial:hover {
	transform: translateY(-2px);
	box-shadow: var(--vp-shadow);
}

.vp-testimonial__quote {
	color: var(--vp-text);
	margin-bottom: 24px;
	position: relative;
	padding-top: 24px;
}

.vp-testimonial__quote-mark {
	position: absolute;
	top: -8px;
	left: -8px;
	font-size: 4rem;
	color: var(--vp-gradient-from);
	opacity: 0.2;
	line-height: 1;
}

.vp-testimonial__author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.vp-testimonial__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.25rem;
}

.vp-testimonial__avatar--initial {
	background: linear-gradient(135deg, var(--vp-gradient-from), var(--vp-gradient-to));
	color: #fff;
}

.vp-testimonial__name {
	font-weight: 700;
}

.vp-testimonial__role {
	font-size: 0.85rem;
	color: var(--vp-text-muted);
}

/* ─────────────────────── Footer ─────────────────────── */
/* v2.0.48 Bug #39: Đổi footer từ dark slate (#111827) sang light cùng tone với
 * hero/banner + body edges. User yêu cầu: banner + footer + stripes cùng 1 màu.
 * Tất cả color text + border + bg phụ chuyển sang palette light tương ứng. */
.vp-footer {
	background: var(--vp-bg-alt); /* #f9fafb — match body edges + hero */
	color: var(--vp-text); /* dark text for contrast */
	border-top: 1px solid var(--vp-border);
}

.vp-footer .vp-section__title {
	color: var(--vp-text);
	-webkit-text-fill-color: var(--vp-text);
}

.vp-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 48px;
	margin-bottom: 48px;
}

.vp-footer__logo {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--vp-text); /* v2.0.48: was #fff */
	margin-bottom: 16px;
}

.vp-footer__tagline {
	color: var(--vp-text-muted); /* v2.0.48: was #9ca3af */
}

.vp-footer__heading {
	color: var(--vp-text); /* v2.0.48: was #fff */
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 16px;
}

.vp-footer__col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.vp-footer__col ul li {
	padding: 4px 0;
}

.vp-footer__col a {
	color: var(--vp-text-muted); /* v2.0.48: was #d1d5db */
	text-decoration: none;
	transition: color 0.15s;
}

.vp-footer__col a:hover {
	color: var(--vp-gradient-from); /* v2.0.48: was #fff — brand purple on hover */
}

.vp-footer__social {
	display: flex;
	gap: 12px;
}

.vp-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(91, 76, 252, 0.08); /* v2.0.48: was rgba(255,255,255,0.1) — subtle brand tint on light bg */
	color: var(--vp-text);
	border-radius: 50%;
	font-size: 1.25rem;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.vp-footer__social-link:hover {
	background: linear-gradient(135deg, var(--vp-gradient-from), var(--vp-gradient-to));
	color: #fff;
}

.vp-footer__bottom {
	padding-top: 24px;
	border-top: 1px solid var(--vp-border); /* v2.0.48: was rgba(255,255,255,0.1) */
	text-align: center;
	color: var(--vp-text-muted); /* v2.0.48: was #9ca3af */
	font-size: 0.875rem;
}

/* ─────────────────────── Responsive ─────────────────────── */
@media (max-width: 768px) {
	.vp-hero__title { font-size: 2.25rem; }
	.vp-hero__subtitle { font-size: 1rem; }
	.vp-section__title { font-size: 1.875rem; }
	.vp-section { padding: 60px 0; }
	.vp-feature-card { padding: 28px; }
	.vp-pricing-card--popular { transform: none; }
	.vp-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
	.vp-lang-switcher { top: 12px; right: 12px; }
}

@media (max-width: 480px) {
	.vp-hero__cta { flex-direction: column; }
	.vp-btn { width: 100%; }
	.vp-footer__grid { grid-template-columns: 1fr; }
}

/* ─────────────────── Support chat bubble ─────────────────── */
.vp-support {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 1001;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.vp-landing[dir="rtl"] .vp-support {
	right: auto;
	left: 20px;
}

.vp-support__bubble {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	border: none;
	background: linear-gradient(135deg, var(--vp-gradient-from), var(--vp-gradient-to));
	color: #fff;
	cursor: pointer;
	box-shadow: 0 10px 25px rgba(91, 76, 252, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	position: relative;
}

.vp-support__bubble:hover {
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 14px 30px rgba(91, 76, 252, 0.5);
}

.vp-support__bubble-icon,
.vp-support__bubble-close {
	width: 28px;
	height: 28px;
	position: absolute;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.vp-support__bubble-close {
	opacity: 0;
	transform: rotate(-90deg);
}

.vp-support.is-open .vp-support__bubble-icon {
	opacity: 0;
	transform: rotate(90deg);
}

.vp-support.is-open .vp-support__bubble-close {
	opacity: 1;
	transform: rotate(0deg);
}

.vp-support__panel {
	position: absolute;
	bottom: 72px;
	right: 0;
	width: 320px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.vp-landing[dir="rtl"] .vp-support__panel {
	right: auto;
	left: 0;
}

.vp-support.is-open .vp-support__panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.vp-support__header {
	padding: 18px 20px;
	background: linear-gradient(135deg, var(--vp-gradient-from), var(--vp-gradient-to));
	color: #fff;
}

.vp-support__header strong {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 4px;
}

.vp-support__header p {
	margin: 0;
	font-size: 0.825rem;
	opacity: 0.9;
}

.vp-support__channels {
	list-style: none;
	margin: 0;
	padding: 8px;
}

.vp-support__channel {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	text-decoration: none;
	color: var(--vp-text);
	border-radius: 10px;
	transition: background 0.15s ease;
}

.vp-support__channel:hover {
	background: var(--vp-bg-alt);
}

.vp-support__channel-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: #fff;
}

.vp-support__channel-icon svg {
	width: 20px;
	height: 20px;
}

.vp-support__channel--facebook .vp-support__channel-icon { background: #1877F2; }
.vp-support__channel--whatsapp .vp-support__channel-icon { background: #25D366; }
.vp-support__channel--telegram .vp-support__channel-icon { background: #0088CC; }
.vp-support__channel--zalo     .vp-support__channel-icon { background: #0068FF; }

.vp-support__channel-label {
	flex: 1;
	font-size: 0.95rem;
	font-weight: 500;
}

.vp-support__channel-arrow {
	color: var(--vp-text-muted);
	font-size: 1.1rem;
	opacity: 0;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.vp-support__channel:hover .vp-support__channel-arrow {
	opacity: 1;
	transform: translateX(2px);
}

@media (max-width: 480px) {
	.vp-support { bottom: 12px; right: 12px; }
	.vp-support__bubble { width: 52px; height: 52px; }
	.vp-support__panel { bottom: 64px; width: calc(100vw - 24px); }
}

/* ───────── Break out of theme's constrained layout (v2.0.45) ─────────
 * Twenty Twenty-Five (FSE) wrap content trong CHUỖI 2 lớp `is-layout-constrained`
 * (group + post-content) với `max-width: var(--wp--style--global--content-size)`
 * (~620px). Kỹ thuật negative-margin -50vw cũ chỉ break được 1 lớp + bị
 * `--wp--style--root--padding-left/right` (~32px) đẩy lệch → cột hẹp 30% +
 * nền theme lộ 70%.
 *
 * Fix: scope qua `body.has-vp-landing` (server-side add qua body_class filter
 * trong shortcode → no FOUC), kill constraint chain + override CSS variables
 * ở root level cho mọi descendant FSE block.
 *
 * Selector matrix tested với:
 *   - Twenty Twenty-Five (FSE):   .wp-block-group.is-layout-constrained ✓
 *   - Twenty Twenty-Four (FSE):   .wp-block-post-content ✓
 *   - Twenty Twenty-Three (FSE):  main + .wp-site-blocks ✓
 *   - Astra (classic):            .entry-content + .site-content ✓
 *   - GeneratePress (classic):    .entry-content + .inside-article ✓
 *   - Hello Elementor:            .site-main ✓
 */

/* Root-level override CSS variables → mọi block descendant mặc định 100% width */
body.has-vp-landing {
	--wp--style--global--content-size: 100%;
	--wp--style--global--wide-size: 100%;
	--wp--style--root--padding-left: 0;
	--wp--style--root--padding-right: 0;
	--wp--style--root--padding-top: 0;
	--wp--style--root--padding-bottom: 0;
}

/* Break constraint chain — match cả FSE block themes lẫn classic themes */
body.has-vp-landing .wp-site-blocks,
body.has-vp-landing .wp-site-blocks > main,
body.has-vp-landing main.wp-block-group,
body.has-vp-landing .wp-block-group.is-layout-constrained,
body.has-vp-landing .wp-block-post-content,
body.has-vp-landing .wp-block-post-content.is-layout-constrained,
body.has-vp-landing .has-global-padding,
/* Classic themes */
body.has-vp-landing .entry-content,
body.has-vp-landing .site-content,
body.has-vp-landing .site-main,
body.has-vp-landing .inside-article,
body.has-vp-landing #content,
body.has-vp-landing #primary {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Element gốc của shortcode — break-out viewport bằng negative-margin trick.
 * `calc(50% - 50vw)` = pull element từ tâm parent đến cạnh viewport bên trái/phải.
 * Hoạt động bất kể parent có max-width hay không. Cộng với constraint-break ở
 * trên là double safety.
 *
 * Specificity boost: dùng `body.has-vp-landing .vp-landing` (0,2,0) để thắng
 * theme rule `.entry-content > *` (0,1,2) của Twenty Twenty-One/Twenty/Nineteen
 * etc. Cùng với `!important` trên max-width là triple safety.
 *
 * `.alignfull` class cũng được add vào element bởi renderer — WP standard class
 * mà mọi modern theme respect (Twenty Twenty-One có rule `.alignfull{max-width:none}`).
 */
body.has-vp-landing .vp-landing,
.vp-landing.alignfull,
.vp-landing {
	box-sizing: border-box !important;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding: 0 !important;
	position: relative !important;
}

/* Body remove padding (Twenty Twenty-Five có root padding ~32px) +
 * overflow-x: hidden ngăn 100vw làm xuất hiện horizontal scroll
 * (do scrollbar width ~15px chiếm vào 100vw trên Windows). */
body.has-vp-landing,
html:has(body.has-vp-landing) {
	padding: 0 !important;
	margin: 0 !important;
	overflow-x: hidden !important;
	max-width: 100vw !important;
	/* v2.0.47 Bug #37 — TT-21 body có default background-color rgb(209,228,221)
	 * (light teal — `--global--color-primary` của theme). #page/#content/#primary
	 * wrapper đều transparent → body bg lộ qua 60px đầu trang.
	 * v2.0.48 Bug #39 — Đổi từ #ffffff → #f9fafb (gray-50) để match unified
	 * tone với hero (transparent inherit body) + footer (#f9fafb) → top/bottom
	 * stripes cùng 1 màu, không còn cảm giác "vệt khác màu". */
	background: #f9fafb !important;
}

/* Hide theme's auto-rendered page title when shortcode renders alone */
body:has(.vp-landing) .wp-block-post-title,
body:has(.vp-landing) .entry-title {
	display: none;
}

/* Fallback cho browser không support :has() — ẩn trực tiếp qua page-specific class.
 * Không dùng :has → dùng JS trong landing.js thay vào đó, xem initHideThemeTitle(). */

/* ───────── "Free:" accent đỏ ─────────
 * Split hero title: "Free:" (accent) + phần còn lại (gradient mặc định).
 * Màu đỏ #DC2626 — đủ nổi bật, vẫn hài hòa brand gradient tím.
 */
.vp-hero__title-accent {
	color: #DC2626;
	background: none;
	-webkit-text-fill-color: #DC2626;
	-webkit-background-clip: initial;
	background-clip: initial;
	font-weight: 900;
}

/* ───────── Ẩn theme header khi landing render ─────────
 * Twenty Twenty-Five + theme modern thường render header với navigation
 * nav (Sample Page, site title) phía trên content — landing page cần full
 * focus nên ẩn đi. JS thêm class .has-vp-landing vào body.
 */
body.has-vp-landing header.wp-block-template-part,
body.has-vp-landing .wp-block-template-part--header,
body.has-vp-landing > .wp-site-blocks > header,
body.has-vp-landing > .wp-site-blocks > .wp-block-template-part,
/* v2.0.46 — Classic themes coverage (TT-21/20/19, Astra, GeneratePress,
 * OceanWP, Hello Elementor, Storefront, Twenty Sixteen, Twenty Seventeen,
 * và mọi theme dùng `_s` starter convention với #masthead / #colophon).
 * Cách 1 từ Bug #36 diagnostic — defensive shotgun selectors, scope chặt
 * trong `body.has-vp-landing` nên không ảnh hưởng theme khác / page khác. */
body.has-vp-landing header#masthead,
body.has-vp-landing #masthead,
body.has-vp-landing .site-header,
body.has-vp-landing footer#colophon,
body.has-vp-landing #colophon,
body.has-vp-landing .site-footer,
body.has-vp-landing .skip-link,
body.has-vp-landing .site-branding,
body.has-vp-landing .site-title,
body.has-vp-landing .site-description,
body.has-vp-landing .widget-area,
body.has-vp-landing #secondary {
	display: none !important;
}

/* Cũng bỏ phần padding top lớn mà theme thêm cho "alignfull" block */
body.has-vp-landing .wp-block-group.alignfull.has-global-padding {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* ───────── Bubble support — nổi bật hơn ─────────
 * Tăng size + pulse animation để user thấy ngay.
 */
.vp-support__bubble {
	width: 64px;
	height: 64px;
	box-shadow: 0 12px 28px rgba(91, 76, 252, 0.5), 0 0 0 0 rgba(91, 76, 252, 0.4);
	animation: vp-support-pulse 2.5s ease-out infinite;
}

.vp-support__bubble-icon,
.vp-support__bubble-close {
	width: 32px;
	height: 32px;
}

@keyframes vp-support-pulse {
	0%   { box-shadow: 0 12px 28px rgba(91, 76, 252, 0.5), 0 0 0 0 rgba(91, 76, 252, 0.6); }
	70%  { box-shadow: 0 12px 28px rgba(91, 76, 252, 0.5), 0 0 0 18px rgba(91, 76, 252, 0); }
	100% { box-shadow: 0 12px 28px rgba(91, 76, 252, 0.5), 0 0 0 0 rgba(91, 76, 252, 0); }
}

/* Khi user đã mở panel → dừng pulse, đỡ rối */
.vp-support.is-open .vp-support__bubble {
	animation: none;
}

/* ───────── Humanize callout — USP "bypass AI detector" ─────────
 * Pill gradient đậm, bold text, shimmer effect để nổi bật giữa hero section.
 * Đặt sau badges (trước Core features) — là điểm dừng mắt thứ 2 sau hero title.
 */
.vp-hero__humanize {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 28px auto 0;
	padding: 14px 24px;
	border-radius: 999px;
	background: linear-gradient(135deg, #FEF3C7 0%, #FED7AA 50%, #FECACA 100%);
	border: 2px solid #F59E0B;
	color: #78350F;
	font-size: 1.05rem;
	line-height: 1.4;
	font-weight: 700;
	letter-spacing: 0.005em;
	max-width: 760px;
	box-shadow:
		0 8px 20px rgba(245, 158, 11, 0.25),
		0 2px 6px rgba(0, 0, 0, 0.05);
	position: relative;
	overflow: hidden;
}

/* Shimmer sweep effect — nhấn chú ý (loop chậm, không gây khó chịu) */
.vp-hero__humanize::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 255, 255, 0.45) 50%,
		transparent 100%
	);
	animation: vp-humanize-shimmer 3.5s ease-in-out infinite;
}

@keyframes vp-humanize-shimmer {
	0%   { left: -100%; }
	50%  { left: 100%; }
	100% { left: 100%; }
}

.vp-hero__humanize-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, #F59E0B, #DC2626);
	color: #fff;
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
	position: relative;
	z-index: 1;
}

.vp-hero__humanize-icon svg {
	width: 18px;
	height: 18px;
}

.vp-hero__humanize strong {
	position: relative;
	z-index: 1;
	font-weight: 800;
}

@media (max-width: 680px) {
	.vp-hero__humanize {
		font-size: 0.95rem;
		padding: 12px 18px;
		border-radius: 16px;
	}
}

/* ───────── Download button — đỏ / vàng / icon tải ───────── */
.vp-btn--download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 18px 40px;
	border-radius: var(--vp-radius);
	font-weight: 800;
	font-size: 1.15rem;
	text-decoration: none;
	background: linear-gradient(135deg, #DC2626 0%, #B91C1C 50%, #991B1B 100%);
	color: #FCD34D; /* Yellow-300 — tương phản tốt với đỏ, đủ bold không chói mắt */
	border: 2px solid rgba(252, 211, 77, 0.3);
	box-shadow:
		0 12px 28px rgba(220, 38, 38, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.15);
	cursor: pointer;
	transition: all 0.22s ease;
	position: relative;
	overflow: hidden;
}

.vp-btn--download:hover {
	color: #FDE68A; /* Yellow-200 — sáng hơn khi hover */
	background: linear-gradient(135deg, #B91C1C 0%, #991B1B 50%, #7F1D1D 100%);
	transform: translateY(-2px);
	box-shadow:
		0 18px 40px rgba(220, 38, 38, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	border-color: rgba(252, 211, 77, 0.55);
}

.vp-btn--download:active {
	transform: translateY(0);
	box-shadow: 0 6px 14px rgba(220, 38, 38, 0.5);
}

.vp-btn--download .vp-btn__icon {
	width: 24px;
	height: 24px;
	color: #FCD34D;
	transition: transform 0.22s ease;
	flex: 0 0 auto;
}

/* Icon animation: bounce xuống nhẹ khi hover (signal hint "tải xuống") */
.vp-btn--download:hover .vp-btn__icon {
	animation: vp-download-bounce 0.8s ease-in-out infinite;
}

@keyframes vp-download-bounce {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(3px); }
}

.vp-btn--download .vp-btn__meta {
	font-size: 0.85rem;
	font-weight: 600;
	opacity: 0.85;
	color: #FCD34D;
	margin-left: 6px;
	padding-left: 10px;
	border-left: 1.5px solid rgba(252, 211, 77, 0.35);
}

/* Shimmer effect dọc theo chiều ngang — nhấn chú ý mà không rối mắt */
.vp-btn--download::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(252, 211, 77, 0.2) 50%,
		transparent 100%
	);
	animation: vp-download-shimmer 3s ease-in-out infinite;
	pointer-events: none;
}

@keyframes vp-download-shimmer {
	0%   { left: -100%; }
	60%  { left: 100%; }
	100% { left: 100%; }
}

@media (max-width: 480px) {
	.vp-btn--download {
		width: 100%;
		padding: 16px 24px;
		font-size: 1rem;
	}
}

/* ───────── Feature card video embed (16:9 responsive) ───────── */
.vp-feature-card__video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin: 20px 0 0;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.25);
}

.vp-feature-card__video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Fallback cho browser chưa support aspect-ratio (rất hiếm) */
@supports not (aspect-ratio: 16 / 9) {
	.vp-feature-card__video {
		padding-bottom: 56.25%;
		height: 0;
	}
}

/* ═══════════════════════════════════════════════════════════════════
 * PRICING PRO v2.0.60 — Public landing pricing redesign.
 * Subscription /tháng + Linear/Vercel-inspired premium design.
 * Scope dưới `.vp-pricing-pro` để KHÔNG conflict với `.vp-pricing-card` cũ.
 * ═══════════════════════════════════════════════════════════════════ */

.vp-pricing-pro__header {
	text-align: center;
	margin: 0 0 36px;
}
.vp-pricing-pro__eyebrow {
	display: inline-block;
	padding: 6px 14px;
	background: linear-gradient(135deg, rgba(91, 76, 252, 0.12), rgba(147, 51, 234, 0.12));
	border: 1px solid rgba(91, 76, 252, 0.25);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #5B4CFC;
	margin-bottom: 14px;
}
.vp-pricing-pro__title {
	font-size: 40px;
	font-weight: 800;
	color: #0F172A;
	margin: 0 0 12px !important;
	line-height: 1.2;
	letter-spacing: -0.02em;
}
.vp-pricing-pro__title-grad {
	background: linear-gradient(135deg, #5B4CFC, #9333EA, #EC4899);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* Grid: 5 cols desktop → responsive */
.vp-pricing-pro__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 40px;
}
@media (max-width: 1280px) { .vp-pricing-pro__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px)  { .vp-pricing-pro__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px)  { .vp-pricing-pro__grid { grid-template-columns: 1fr; } }

/* Card — scope CHẶT dưới `.vp-pricing-pro` để override styles cũ */
.vp-pricing-pro .vp-pricing-card {
	position: relative;
	background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFB 100%);
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	padding: 28px 22px 22px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s, border-color 0.25s;
	overflow: hidden;
}
.vp-pricing-pro .vp-pricing-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, rgba(91, 76, 252, 0.3), transparent);
	opacity: 0;
	transition: opacity 0.25s;
}
.vp-pricing-pro .vp-pricing-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px -12px rgba(91, 76, 252, 0.18);
	border-color: #C7D2FE;
}
.vp-pricing-pro .vp-pricing-card:hover::before { opacity: 1; }
.vp-pricing-pro .vp-pricing-card.is-popular {
	border: 2px solid transparent;
	background:
		linear-gradient(180deg, #FFFFFF 0%, #FAFAFB 100%) padding-box,
		linear-gradient(135deg, #5B4CFC, #9333EA, #EC4899) border-box;
	box-shadow: 0 20px 40px -10px rgba(91, 76, 252, 0.25);
	transform: scale(1.03);
	z-index: 2;
}
.vp-pricing-pro .vp-pricing-card.is-popular::before {
	opacity: 1;
	background: linear-gradient(90deg, #5B4CFC, #9333EA, #EC4899);
	height: 4px;
}

/* Badges */
.vp-pricing-card__badge-popular,
.vp-pricing-card__badge-save {
	position: absolute;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 5px 12px;
	border-radius: 999px;
	white-space: nowrap;
	text-transform: uppercase;
}
.vp-pricing-card__badge-popular {
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, #5B4CFC, #9333EA, #EC4899);
	color: #fff;
	box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
	animation: vp-badge-glow 2.5s ease-in-out infinite;
}
@keyframes vp-badge-glow {
	0%, 100% { box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4); }
	50% { box-shadow: 0 4px 20px rgba(147, 51, 234, 0.7); }
}
.vp-pricing-card__badge-save {
	top: 14px;
	right: 14px;
	background: linear-gradient(135deg, #10B981, #059669);
	color: #fff;
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Card content elements (override styles cũ scope-by-parent) */
.vp-pricing-pro .vp-pricing-card__name {
	font-size: 18px;
	font-weight: 700;
	color: #0F172A;
	margin: 0;
}
.vp-pricing-pro .vp-pricing-card__credits {
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.vp-pricing-pro .vp-pricing-card__credits strong {
	font-size: 32px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	background: linear-gradient(135deg, #5B4CFC, #9333EA);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.vp-pricing-pro .vp-pricing-card__credits span {
	font-size: 13px;
	color: #6B7280;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.vp-pricing-pro .vp-pricing-card__price {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 0;
	border-top: 1px solid #F3F4F6;
	border-bottom: 1px solid #F3F4F6;
}
.vp-pricing-pro .vp-pricing-card__price-main {
	font-size: 22px;
	font-weight: 700;
	color: #0F172A;
	line-height: 1.1;
	letter-spacing: -0.01em;
}
.vp-pricing-card__period {
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #6B7280 !important;
	margin-left: 2px;
}
.vp-pricing-card__price-usd {
	font-size: 12px;
	color: #6B7280;
}
.vp-pricing-card__price-usd small {
	display: block;
	font-size: 10px;
	color: #9CA3AF;
	margin-top: 2px;
	font-style: italic;
}

/* Breakdown rows (per-unit) */
.vp-pricing-card__breakdown {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.vp-pricing-card__breakdown li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 12px;
}
.vp-pricing-card__bd-label { color: #6B7280; }
.vp-pricing-card__bd-value {
	color: #1F2937;
	font-weight: 600;
}
.vp-pricing-card__bd-value small {
	color: #9CA3AF;
	font-weight: 400;
	font-size: 10px;
}
.vp-pricing-card__bd-summary {
	margin-top: 4px;
	padding-top: 8px;
	border-top: 1px dashed #E5E7EB;
	color: #9CA3AF !important;
	font-size: 11px !important;
	font-style: italic;
	justify-content: center !important;
	text-align: center;
}

/* CTA button — KEEP class `.vp-pricing-card__buy` cho JS hook (landing.js:175) */
.vp-pricing-pro .vp-pricing-card__buy {
	display: block;
	width: 100%;
	text-align: center;
	padding: 14px 18px;
	border-radius: 12px;
	background: #FFFFFF;
	border: 1.5px solid #E5E7EB;
	color: #1F2937;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	margin-top: auto;
	position: relative;
}
.vp-pricing-pro .vp-pricing-card__buy:hover {
	border-color: #5B4CFC;
	color: #5B4CFC;
	box-shadow: 0 4px 12px rgba(91, 76, 252, 0.15);
}
.vp-pricing-pro .vp-pricing-card__buy.is-primary {
	background: linear-gradient(135deg, #5B4CFC, #9333EA);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 4px 14px rgba(91, 76, 252, 0.35);
}
.vp-pricing-pro .vp-pricing-card__buy.is-primary:hover {
	background: linear-gradient(135deg, #4F3FE8, #7E22CE);
	color: #fff;
	box-shadow: 0 8px 20px rgba(91, 76, 252, 0.5);
	transform: translateY(-1px);
}

/* Common features section */
.vp-pricing-pro__features {
	background: #F9FAFB;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	padding: 24px 28px;
	margin: 0 0 24px;
}
.vp-pricing-pro__features-title {
	margin: 0 0 16px !important;
	font-size: 14px;
	font-weight: 700;
	color: #374151;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-align: center;
}
.vp-pricing-pro__features-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 24px;
}
@media (max-width: 720px) {
	.vp-pricing-pro__features-list { grid-template-columns: 1fr; }
}
.vp-pricing-pro__features-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: #4B5563;
	line-height: 1.5;
}
.vp-pricing-pro__check {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #10B981;
	color: #fff;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
}
.vp-pricing-pro__note {
	margin: 0;
	padding: 18px 24px;
	background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
	border: 1px solid #93C5FD;
	color: #1E3A8A;
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.7;
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.vp-pricing-pro__note strong {
	flex-shrink: 0;
	color: #1E40AF;
}
