/*
 Theme Name:   Vay Tin Phat (GeneratePress Child)
 Theme URI:    https://generatepress.com
 Description:  Child theme website Vay Tin Phat - vay tien online den 20 trieu, duyet trong 2H.
 Author:       Vay Tin Phat
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  vaytinphat
*/

/* ==========================================================================
   1. VARIABLES
   ========================================================================== */

:root {
	--tp-primary: #1F47B0;
	--tp-primary-light: #3D63C9;
	--tp-primary-dark: #0B2A8C;
	--tp-gold: #F5B21A;
	--tp-gold-deep: #E49000;
	--tp-gold-soft: #FFF3D1;
	--tp-accent-1: #D9EFA0;
	--tp-accent-2: #E8EEFB;
	--tp-mint: #EEF9CF;
	--tp-lime: #E4F7B4;
	--tp-blue-soft: #E8EEFB;
	--tp-navy: #1C1A14;
	--tp-text: #4A4A3E;
	--tp-muted: #5E5E52;
	--tp-bg-soft: #F6FBE6;
	--tp-white: #FFFFFF;
	--tp-border: #E2E8D2;
	--tp-shadow-sm: 0 2px 10px rgba(28, 26, 20, .06);
	--tp-shadow-md: 0 10px 28px rgba(28, 26, 20, .09);
	--tp-shadow-lg: 0 22px 54px rgba(28, 26, 20, .13);
	--tp-radius: 18px;
	--tp-radius-lg: 26px;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */

html,
body {
	overflow-x: clip;
}

body.tp-body {
	background: var(--tp-white);
	color: var(--tp-text);
}

.tp-body a {
	color: var(--tp-primary);
}

.tp-body a:hover,
.tp-body a:focus {
	color: var(--tp-navy);
}

.tp-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.tp-main {
	display: block;
}

.tp-main :where(h1, h2, h3, h4, h5, h6) {
	margin: 0 0 .6em;
	color: var(--tp-navy);
	font-weight: 700;
	line-height: 1.3;
}

.tp-main :where(h2) {
	font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.tp-main :where(h3) {
	font-size: 19px;
}

.tp-main :where(h4, h5, h6) {
	font-size: 17px;
}

.tp-main :where(p) {
	margin: 0 0 1em;
}

.tp-main :where(ul, ol) {
	margin: 0;
	padding: 0;
}

.tp-body dt {
	font-weight: 400;
}

.tp-body dd {
	margin: 0;
}

.tp-skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 2000;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--tp-navy);
	color: #fff;
}

.tp-body .tp-skip:focus {
	left: 12px;
	color: #fff;
}

/* ==========================================================================
   3. BUTTONS (CTA pattern) - bo 12px theo squircle cua logo
   ========================================================================== */

.tp-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 30px;
	border: 0;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}

.tp-btn--primary {
	background: var(--tp-primary);
	color: #fff;
	box-shadow: 0 10px 22px rgba(31, 71, 176, .26);
}

.tp-btn--primary:hover,
.tp-btn--primary:focus {
	background: var(--tp-primary-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 12px 26px rgba(31, 71, 176, .32);
}

.tp-btn--gold {
	background: var(--tp-gold);
	color: var(--tp-navy);
	box-shadow: 0 10px 22px rgba(28, 26, 20, .18);
}

.tp-btn--gold:hover,
.tp-btn--gold:focus {
	background: #FFC93F;
	color: var(--tp-navy);
	transform: translateY(-1px);
}

.tp-btn--block {
	width: 100%;
}

.tp-btn:focus-visible {
	outline: 3px solid var(--tp-navy);
	outline-offset: 3px;
}

.tp-btn .btn-text {
	transition: opacity .15s ease;
}

.tp-btn.btn-loading {
	pointer-events: none;
}

.tp-btn.btn-loading .btn-text {
	opacity: 0;
}

.tp-btn.btn-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2.5px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: tp-spin .7s linear infinite;
}

@keyframes tp-spin {
	to { transform: rotate(360deg); }
}

.tp-body .tp-link {
	color: var(--tp-primary-dark);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.tp-body .tp-link:hover,
.tp-body .tp-link:focus {
	color: var(--tp-navy);
}

/* ==========================================================================
   4. HEADER
   ========================================================================== */

/* KHONG sticky, KHONG z-index (khong tao stacking context -> panel menu mobile noi tren overlay) */
.tp-header {
	position: relative;
	background: #fff;
	border-bottom: 1px solid var(--tp-border);
}

.tp-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 76px;
}

.tp-body .tp-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--tp-navy);
	text-decoration: none;
	flex-shrink: 0;
}

.tp-body .tp-header__brand:hover,
.tp-body .tp-header__brand:focus {
	color: var(--tp-navy);
}

.tp-header__logo {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	object-fit: cover;
}

.tp-header__sitename {
	font-size: 21px;
	font-weight: 900;
	letter-spacing: -.01em;
	white-space: nowrap;
}

.tp-nav {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tp-nav__head,
.tp-nav__cta {
	display: none;
}

.tp-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-body .tp-nav__link {
	display: block;
	padding: 8px 16px;
	border-radius: 10px;
	color: var(--tp-navy);
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

.tp-body .tp-nav__link:hover,
.tp-body .tp-nav__link:focus {
	background: var(--tp-bg-soft);
	color: var(--tp-primary);
}

.tp-body .tp-nav__link--active {
	background: var(--tp-mint);
	color: var(--tp-primary);
	pointer-events: none;
}

.tp-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tp-header__cta {
	padding: 10px 24px;
}

.tp-header__toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--tp-border);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
}

.tp-header__toggle:hover,
.tp-header__toggle:focus {
	background: var(--tp-bg-soft);
	border-color: var(--tp-border);
}

.tp-header__toggle-bar,
.tp-header__toggle-bar::before,
.tp-header__toggle-bar::after {
	position: absolute;
	left: 50%;
	width: 20px;
	height: 3px;
	margin-left: -10px;
	border-radius: 2px;
	background: var(--tp-navy);
	content: "";
}

.tp-header__toggle-bar {
	top: 50%;
	margin-top: -1.5px;
}

.tp-header__toggle-bar::before {
	top: -7px;
	margin: 0;
	left: 0;
}

.tp-header__toggle-bar::after {
	top: 7px;
	left: 0;
	width: 13px;
	margin: 0;
	background: var(--tp-primary);
}

.tp-nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(28, 26, 20, .55);
}

.tp-nav-overlay[hidden] {
	display: none;
}

/* ==========================================================================
   5. HERO (giu nguyen bo cuc CLAUDE-TEMPLATE.md)
   ========================================================================== */

.tp-hero {
	position: relative;
	padding: 56px 0 132px;
	background:
		radial-gradient(circle at 96% 6%, rgba(228, 247, 180, .9), transparent 34%),
		linear-gradient(180deg, var(--tp-bg-soft) 0%, #FFFFFF 100%);
}

.tp-hero__grid {
	display: grid;
	grid-template-columns: 1.1fr .8fr;
	gap: 48px;
	align-items: center;
}

.tp-main h1.tp-hero__title {
	margin: 0 0 14px;
	font-size: clamp(1.3rem, 5vw, 2rem);
	line-height: 1.25;
}

.tp-hero__desc {
	max-width: 58ch;
	margin: 0 0 8px;
	font-size: 17px;
	line-height: 1.65;
}

.tp-hero__content {
	justify-self: end;
	width: 100%;
	max-width: 500px;
}

/* Khoi minh hoa (trang tri, aria-hidden): phong bi tien tren squircle lime */
.tp-hero__art {
	width: 100%;
	max-width: 540px;
	margin-top: 18px;
}

.tp-hero__svg {
	display: block;
	width: 100%;
	height: auto;
}

.tp-art__px,
.tp-art__note,
.tp-art__coin,
.tp-art__seal {
	transform-box: fill-box;
	transform-origin: center;
}

.tp-art__px {
	animation: tp-blink 3.2s ease-in-out infinite;
}

.tp-art__px:nth-child(2n) {
	animation-delay: .8s;
}

.tp-art__px:nth-child(3n) {
	animation-delay: 1.6s;
}

.tp-art__note {
	animation: tp-rise 5s ease-in-out infinite;
}

.tp-art__coin {
	animation: tp-bob 4s ease-in-out infinite;
}

.tp-art__coin--b {
	animation-delay: 1.3s;
}

@keyframes tp-blink {
	0%, 100% { opacity: 1; transform: translateY(0); }
	50% { opacity: .35; transform: translateY(-6px); }
}

@keyframes tp-rise {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

@keyframes tp-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-7px); }
}

/* Widget uoc tinh khoan vay */
.tp-loan {
	padding: 28px;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius-lg);
	background: #fff;
	box-shadow: var(--tp-shadow-lg);
}

.tp-loan__title {
	margin: 0 0 18px;
	color: var(--tp-navy);
	font-size: 19px;
	font-weight: 800;
}

.tp-loan__amount {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.tp-loan__label {
	color: var(--tp-text);
	font-weight: 600;
}

.tp-loan__value {
	color: var(--tp-primary);
	font-size: 26px;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
}

.tp-loan__range {
	--tp-fill: 20%;
	display: block;
	width: 100%;
	height: 10px;
	margin: 12px 0;
	border-radius: 999px;
	background: linear-gradient(to right, var(--tp-primary-light) 0, var(--tp-primary) var(--tp-fill), var(--tp-accent-2) var(--tp-fill), var(--tp-accent-2) 100%);
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.tp-loan__range::-webkit-slider-thumb {
	width: 28px;
	height: 28px;
	border: 7px solid var(--tp-primary);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 12px rgba(31, 71, 176, .35);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.tp-loan__range::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 7px solid var(--tp-primary);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 12px rgba(31, 71, 176, .35);
	cursor: pointer;
}

.tp-loan__range:focus-visible {
	outline: 3px solid var(--tp-navy);
	outline-offset: 6px;
}

.tp-loan__scale {
	display: flex;
	justify-content: space-between;
	color: var(--tp-muted);
	font-size: 13px;
}

.tp-loan__rows {
	margin: 18px 0 20px;
}

.tp-loan__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px dashed var(--tp-border);
}

.tp-loan__row dt {
	color: var(--tp-text);
	font-weight: 500;
}

.tp-loan__row dd {
	margin: 0;
	color: var(--tp-navy);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.tp-loan__row dd.tp-loan__free {
	padding: 2px 12px;
	border-radius: 8px;
	background: var(--tp-accent-2);
	color: var(--tp-primary-dark);
	font-size: 14.5px;
	font-weight: 800;
}

.tp-loan__row--total {
	margin-top: 12px;
	padding: 14px 18px;
	border: 0;
	border-radius: 14px;
	background: var(--tp-bg-soft);
}

.tp-loan__row--total dt {
	color: var(--tp-navy);
	font-weight: 700;
}

.tp-loan__row--total dd {
	color: var(--tp-primary);
	font-size: 1.3rem;
	font-weight: 900;
}

.tp-loan__note {
	margin: 14px 0 0;
	color: var(--tp-muted);
	font-size: 13.5px;
	line-height: 1.55;
	text-align: center;
}

.tp-body .tp-loan__note a {
	color: var(--tp-primary);
	text-decoration: none;
}

/* ==========================================================================
   6. STATS BAR (chi tablet/mobile)
   ========================================================================== */

.tp-stats {
	position: relative;
	margin-top: -16px;
}

.tp-stats__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-stats__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 12px;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	background: #fff;
	box-shadow: var(--tp-shadow-md);
	text-align: center;
}

.tp-stats__value {
	color: var(--tp-primary);
	font-size: 20px;
	font-weight: 900;
}

.tp-stats__label {
	color: var(--tp-text);
	font-size: 13.5px;
}

/* ==========================================================================
   7. SECTION CHUNG
   ========================================================================== */

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

.tp-section--soft {
	background: var(--tp-bg-soft);
}

.tp-section--flush-top {
	padding-top: 40px;
}

.tp-section--flush-bottom {
	padding-bottom: 24px;
}

.tp-section__head {
	max-width: 760px;
	margin: 0 0 40px;
}

.tp-section__head--center {
	margin: 0 auto 40px;
	text-align: center;
}

.tp-main .tp-section__title {
	margin: 0 0 12px;
	font-size: clamp(1.25rem, 3vw, 1.7rem);
	line-height: 1.3;
}

/* Gach chan H2 = 3 o pixel xanh - vang - xanh */
.tp-section__title::after {
	display: block;
	width: 32px;
	height: 8px;
	margin-top: 12px;
	background:
		linear-gradient(var(--tp-primary), var(--tp-primary)) no-repeat 0 0 / 8px 8px,
		linear-gradient(var(--tp-gold), var(--tp-gold)) no-repeat 12px 0 / 8px 8px,
		linear-gradient(var(--tp-primary), var(--tp-primary)) no-repeat 24px 0 / 8px 8px;
	content: "";
}

.tp-section__head--light .tp-section__title::after {
	background:
		linear-gradient(var(--tp-gold), var(--tp-gold)) no-repeat 0 0 / 8px 8px,
		linear-gradient(#fff, #fff) no-repeat 12px 0 / 8px 8px,
		linear-gradient(var(--tp-gold), var(--tp-gold)) no-repeat 24px 0 / 8px 8px;
}

.tp-section__head--center .tp-section__title::after {
	margin-left: auto;
	margin-right: auto;
}

.tp-section__desc {
	margin: 0;
	font-size: 17px;
	line-height: 1.65;
	text-wrap: pretty;
}

.tp-section__desc strong {
	color: var(--tp-navy);
}

.tp-section__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px 28px;
	margin-top: 44px;
}

/* ==========================================================================
   8. SIGNATURE - LUOI PIXEL 2 GIO
   Khong JS / reduced-motion: o sang san. JS: .is-armed (o mo) -> .is-in (o sang lan luot).
   ========================================================================== */

.tp-pixels__board {
	display: grid;
	grid-template-columns: 210px 1fr;
	grid-template-areas: "counter track" "legend legend";
	gap: 28px 36px;
	align-items: center;
	max-width: 1080px;
	margin: 0 auto;
	padding: 36px 40px;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius-lg);
	background: #fff;
	box-shadow: var(--tp-shadow-md);
}

.tp-pixels__counter {
	grid-area: counter;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 26px 16px;
	border-radius: var(--tp-radius-lg);
	background: var(--tp-primary-dark);
	color: #fff;
	text-align: center;
}

.tp-pixels__num {
	color: var(--tp-gold);
	font-size: 52px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
}

.tp-pixels__unit {
	margin-top: 8px;
	font-size: 15px;
	font-weight: 700;
}

.tp-pixels__track {
	grid-area: track;
	min-width: 0;
}

.tp-pixels__grid {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr)) 6px repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-pixels__cell {
	display: grid;
	place-items: end center;
	aspect-ratio: 1 / 1;
	padding-bottom: 6px;
	border-radius: 6px;
	background: var(--tp-primary);
	color: rgba(255, 255, 255, .85);
	font-size: 12px;
	font-weight: 800;
	box-sizing: border-box;
}

/* Cot trong 6px truoc o thu 9: tach 2 chang (xet duyet | giai ngan) */
.tp-pixels__cell:nth-child(9) {
	grid-column: 10;
}

.tp-pixels__cell--gold {
	background: var(--tp-gold);
	color: var(--tp-navy);
}

.tp-pixels__axis {
	display: grid;
	grid-template-columns: 8fr 4fr;
	margin-top: 12px;
	color: var(--tp-muted);
	font-size: 14px;
	font-weight: 700;
}

.tp-pixels__axis span:nth-child(1) {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
}

.tp-pixels__axis span:nth-child(2) {
	grid-column: 1;
	grid-row: 1;
	justify-self: end;
	padding-right: 4px;
}

.tp-pixels__axis span:nth-child(3) {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
}

.tp-pixels__legend {
	grid-area: legend;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 28px;
	margin: 0;
	padding: 20px 0 0;
	border-top: 1px dashed var(--tp-border);
	list-style: none;
}

.tp-pixels__key {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	line-height: 1.6;
}

.tp-pixels__key strong {
	color: var(--tp-navy);
}

.tp-pixels__swatch {
	width: 18px;
	height: 18px;
	margin-top: 4px;
	border-radius: 4px;
	background: var(--tp-primary);
	flex-shrink: 0;
}

.tp-pixels__key--gold .tp-pixels__swatch {
	background: var(--tp-gold);
}

/* Armed: o mo. KHONG transition o day (bay VietCash: chay nguoc tu trang thai cuoi). */
.tp-pixels.is-armed .tp-pixels__cell {
	opacity: .14;
	transform: scale(.82);
	transition: none;
}

.tp-pixels.is-armed.is-in .tp-pixels__cell {
	opacity: 1;
	transform: scale(1);
	transition: opacity .25s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

.tp-pixels.is-armed.is-in .tp-pixels__cell:nth-child(1) { transition-delay: .05s; }
.tp-pixels.is-armed.is-in .tp-pixels__cell:nth-child(2) { transition-delay: .18s; }
.tp-pixels.is-armed.is-in .tp-pixels__cell:nth-child(3) { transition-delay: .31s; }
.tp-pixels.is-armed.is-in .tp-pixels__cell:nth-child(4) { transition-delay: .44s; }
.tp-pixels.is-armed.is-in .tp-pixels__cell:nth-child(5) { transition-delay: .57s; }
.tp-pixels.is-armed.is-in .tp-pixels__cell:nth-child(6) { transition-delay: .70s; }
.tp-pixels.is-armed.is-in .tp-pixels__cell:nth-child(7) { transition-delay: .83s; }
.tp-pixels.is-armed.is-in .tp-pixels__cell:nth-child(8) { transition-delay: .96s; }
.tp-pixels.is-armed.is-in .tp-pixels__cell:nth-child(9) { transition-delay: 1.24s; }
.tp-pixels.is-armed.is-in .tp-pixels__cell:nth-child(10) { transition-delay: 1.37s; }
.tp-pixels.is-armed.is-in .tp-pixels__cell:nth-child(11) { transition-delay: 1.50s; }
.tp-pixels.is-armed.is-in .tp-pixels__cell:nth-child(12) { transition-delay: 1.63s; }

/* ==========================================================================
   9. THONG SO - DAI RUY BANG VANG (6 muc chia boi soc xanh)
   ========================================================================== */

.tp-ribbon__band {
	position: relative;
	padding: 6px 34px;
	background: var(--tp-gold);
	clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 50%, 100% 100%, 0 100%, 22px 50%);
}

.tp-ribbon__list {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	margin: 0;
}

.tp-ribbon__item {
	display: flex;
	flex-direction: column-reverse;
	justify-content: center;
	gap: 4px;
	padding: 26px 14px;
	text-align: center;
}

/* Soc xanh doc giua cac muc (soc cua logo) */
.tp-ribbon__item + .tp-ribbon__item {
	border-left: 6px solid var(--tp-primary-dark);
}

.tp-ribbon__item dt {
	color: var(--tp-navy);
	font-size: 14px;
	font-weight: 700;
	opacity: .8;
}

.tp-ribbon__item dd {
	color: var(--tp-navy);
	font-size: 20px;
	font-weight: 900;
	line-height: 1.25;
}

.tp-ribbon__foot {
	margin: 20px 0 0;
	font-size: 15.5px;
	line-height: 1.6;
	text-align: center;
}

.tp-ribbon__foot strong {
	color: var(--tp-primary);
}

/* ==========================================================================
   10. VI DU - NHAN / TRA
   ========================================================================== */

.tp-flow__pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
	align-items: stretch;
	max-width: 1000px;
	margin: 0 auto;
}

.tp-flow__box {
	padding: 28px 30px;
	border-radius: var(--tp-radius-lg);
	text-align: center;
}

.tp-flow__box--get {
	background: var(--tp-blue-soft);
	border: 1px solid #CDD8F3;
}

.tp-flow__box--pay {
	background: var(--tp-gold-soft);
	border: 1px solid #F6DE9C;
}

.tp-flow__label {
	margin: 0 0 6px;
	color: var(--tp-navy);
	font-weight: 700;
}

.tp-flow__amount {
	margin: 0 0 6px;
	color: var(--tp-primary-dark);
	font-size: clamp(1.7rem, 4vw, 2.3rem);
	font-weight: 900;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.tp-flow__box--pay .tp-flow__amount {
	color: var(--tp-navy);
}

.tp-flow__sub {
	margin: 0;
	color: var(--tp-muted);
	font-size: 14.5px;
}

/* Mui ten ruy bang vang giua 2 khoi */
.tp-flow__arrow {
	position: relative;
	display: grid;
	place-items: center;
}

.tp-flow__arrow::before {
	position: absolute;
	top: 50%;
	left: 10px;
	right: 10px;
	height: 44px;
	margin-top: -22px;
	background: var(--tp-gold);
	clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 12px 50%);
	content: "";
}

.tp-flow__arrow-text {
	position: relative;
	padding: 0 18px 0 12px;
	color: var(--tp-navy);
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
}

.tp-flow__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 22px 0 40px;
	padding: 0;
	list-style: none;
}

.tp-flow__chip {
	padding: 8px 16px;
	border: 1px solid var(--tp-border);
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
}

.tp-flow__chip strong {
	color: var(--tp-navy);
}

.tp-flow__caption {
	margin: 0 0 12px;
	color: var(--tp-navy);
	font-weight: 800;
}

.tp-flow__note {
	margin: 14px 0 0;
	color: var(--tp-muted);
	font-size: 14.5px;
}

/* ==========================================================================
   11. DIEU KIEN - BAN CO 2x2
   ========================================================================== */

.tp-checker__grid {
	display: grid;
	grid-template-columns: .85fr 1.15fr;
	gap: 48px;
	align-items: center;
}

.tp-checker__intro .tp-section__head {
	margin-bottom: 26px;
}

.tp-checker__doc {
	padding: 22px 24px;
	border: 2px dashed var(--tp-gold);
	border-radius: var(--tp-radius);
	background: var(--tp-gold-soft);
}

.tp-checker__doc-label {
	margin: 0 0 2px;
	color: var(--tp-muted);
	font-size: 14px;
	font-weight: 700;
}

.tp-checker__doc-value {
	margin: 0 0 8px;
	color: var(--tp-navy);
	font-size: 26px;
	font-weight: 900;
}

.tp-checker__doc-text {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.6;
}

.tp-checker__board {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius-lg);
	overflow: hidden;
	list-style: none;
}

.tp-checker__cell {
	display: flex;
	flex-direction: column;
	padding: 28px 26px;
	background: #fff;
}

.tp-checker__cell--dark {
	background: var(--tp-primary-dark);
	color: #DCE4FA;
}

.tp-checker__num {
	margin-bottom: 14px;
	color: var(--tp-gold-deep);
	font-size: 15px;
	font-weight: 900;
	letter-spacing: .08em;
}

.tp-checker__cell--dark .tp-checker__num {
	color: var(--tp-gold);
}

.tp-main h3.tp-checker__title {
	margin: 0 0 6px;
	font-size: 19px;
}

.tp-main .tp-checker__cell--dark h3.tp-checker__title {
	color: #fff;
}

.tp-checker__text {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.6;
}

/* ==========================================================================
   12. QUY TRINH - 5 HANG TREN NEN XANH DAM
   ========================================================================== */

.tp-steps {
	background: var(--tp-primary-dark);
	color: #DCE4FA;
}

.tp-main .tp-section__head--light .tp-section__title {
	color: #fff;
}

.tp-section__head--light .tp-section__desc {
	color: #DCE4FA;
}

.tp-steps__list {
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, .16);
	list-style: none;
}

.tp-steps__row {
	display: grid;
	grid-template-columns: 70px minmax(0, .9fr) minmax(0, 1.5fr) 200px;
	gap: 20px;
	align-items: center;
	padding: 22px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.tp-steps__num {
	color: var(--tp-gold);
	font-size: 42px;
	font-weight: 900;
	line-height: 1;
}

.tp-main h3.tp-steps__title {
	margin: 0;
	color: #fff;
	font-size: 19px;
}

.tp-steps__text {
	margin: 0;
	line-height: 1.6;
}

.tp-steps__chip {
	justify-self: end;
	padding: 6px 14px;
	border-radius: 8px;
	background: rgba(245, 178, 26, .16);
	color: var(--tp-gold);
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
}

.tp-body .tp-link--light {
	color: #fff;
}

.tp-body .tp-link--light:hover,
.tp-body .tp-link--light:focus {
	color: var(--tp-gold);
}

/* ==========================================================================
   13. VI SAO CHON - 6 UU DIEM (cum 3 o pixel lam icon)
   ========================================================================== */

/* Cum 3 o pixel: 2 o tren (xanh, vang) + 1 o duoi (xanh) */
.tp-px {
	display: inline-grid;
	grid-template-columns: repeat(2, 14px);
	gap: 4px;
}

.tp-px i {
	display: block;
	width: 14px;
	height: 14px;
	border-radius: 3px;
	background: var(--tp-primary);
}

.tp-px i:nth-child(2) {
	background: var(--tp-gold);
}

.tp-px i:nth-child(3) {
	grid-column: 2;
}

.tp-perks__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-perks__item {
	padding: 26px 26px 24px;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	background: #fff;
	box-shadow: var(--tp-shadow-sm);
}

.tp-perks__item .tp-px {
	margin-bottom: 16px;
}

.tp-main h3.tp-perks__title {
	margin: 0 0 6px;
	font-size: 18.5px;
}

.tp-perks__text {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.6;
}

/* ==========================================================================
   14. LUU Y TRUOC KHI NHAN TIEN + THE PHAP NHAN
   ========================================================================== */

.tp-notes__grid {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 56px;
	align-items: start;
}

.tp-notes .tp-section__head {
	margin-bottom: 24px;
}

.tp-notes__list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: tp-note;
}

/* So thu tu trong o pixel vuong */
.tp-notes__item {
	position: relative;
	padding: 2px 0 0 46px;
	line-height: 1.6;
	counter-increment: tp-note;
}

.tp-notes__item::before {
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 6px;
	background: var(--tp-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	content: counter(tp-note);
}

.tp-notes__item:nth-child(even)::before {
	background: var(--tp-gold);
	color: var(--tp-navy);
}

.tp-notes__item strong {
	color: var(--tp-navy);
}

.tp-notes__warn {
	margin: 24px 0 0;
	padding: 16px 20px;
	border-left: 5px solid var(--tp-gold);
	border-radius: 0 14px 14px 0;
	background: #fff;
	font-size: 15.5px;
	line-height: 1.6;
}

.tp-notes__warn strong {
	color: var(--tp-navy);
}

.tp-company {
	position: relative;
	overflow: hidden;
	padding: 34px 28px 22px;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius-lg);
	background: #fff;
	box-shadow: var(--tp-shadow-md);
}

/* Soc vang - xanh o dinh the (ruy bang cua logo) */
.tp-company::before {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 10px;
	background: repeating-linear-gradient(90deg, var(--tp-gold) 0 46px, var(--tp-primary-dark) 46px 58px);
	content: "";
}

.tp-company__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}

.tp-company__logo {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 14px;
}

.tp-main .tp-company__title {
	margin: 0;
	font-size: 20px;
}

.tp-company__rows {
	margin: 0;
}

.tp-company__row {
	display: grid;
	grid-template-columns: 130px 1fr;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px dashed var(--tp-border);
	font-size: 15.5px;
	line-height: 1.55;
}

.tp-company__row dt {
	color: var(--tp-muted);
	font-weight: 600;
}

.tp-company__row dd {
	color: var(--tp-navy);
	font-weight: 700;
	overflow-wrap: anywhere;
}

.tp-body .tp-company__row a {
	color: var(--tp-primary);
	text-decoration: none;
}

/* ==========================================================================
   15. CTA BAND (xanh hoang gia, cum pixel vang nam trong the)
   ========================================================================== */

.tp-cta {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 44px 52px;
	border-radius: var(--tp-radius-lg);
	background: var(--tp-primary);
	color: #DCE4FA;
}

.tp-cta__px {
	position: absolute;
	top: 18px;
	right: 22px;
	opacity: .9;
}

.tp-cta__px i {
	background: #fff;
	opacity: .35;
}

.tp-cta__px i:nth-child(2) {
	background: var(--tp-gold);
	opacity: 1;
}

.tp-cta__body {
	position: relative;
	max-width: 640px;
}

.tp-main h2.tp-cta__title {
	margin: 0 0 8px;
	color: #fff;
	font-size: clamp(1.2rem, 2.8vw, 1.6rem);
}

.tp-cta__desc {
	margin: 0;
	font-size: 17px;
}

.tp-cta .tp-btn {
	position: relative;
	flex-shrink: 0;
}

/* ==========================================================================
   16. KHOI NOI DUNG SEO (CO collapse)
   ========================================================================== */

.tp-seo {
	padding: 72px 0 84px;
	background: var(--tp-bg-soft);
}

.tp-seo__inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 48px 56px;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius-lg);
	background: #fff;
	box-shadow: var(--tp-shadow-sm);
	counter-reset: tp-h2;
	line-height: 1.75;
}

/*
 * Collapse content pattern: noi dung server-rendered day du, JS them .is-collapsed luc load
 * (khong JS -> hien 100%). Thu gon bang max-height + overflow hidden, KHONG display: none.
 */
.tp-seo .tp-seo__inner {
	position: relative;
	transition: max-height .55s ease;
}

.tp-seo .tp-seo__inner.is-collapsed,
.tp-seo .tp-seo__inner.is-animating {
	overflow: hidden;
}

.tp-seo .tp-seo__inner.is-collapsed {
	max-height: 620px;
}

/* Fade trang ~160px o day card khi thu gon */
.tp-seo .tp-seo__inner.is-collapsed::after {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 160px;
	border-radius: 0 0 var(--tp-radius-lg) var(--tp-radius-lg);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 82%);
	pointer-events: none;
	content: "";
}

/* Nut chi hien khi JS da gan .is-collapsible cho section */
.tp-seo__toggle-wrap {
	display: none;
	margin-top: 22px;
	text-align: center;
}

.tp-seo.is-collapsible .tp-seo__toggle-wrap {
	display: block;
}

.tp-seo__toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 26px;
	border: 1.5px solid var(--tp-accent-1);
	border-radius: 12px;
	background: #fff;
	color: var(--tp-primary-dark);
	font: inherit;
	font-weight: 800;
	line-height: 1.5;
	cursor: pointer;
	box-shadow: var(--tp-shadow-sm);
	transition: background-color .2s ease, border-color .2s ease;
}

.tp-seo__toggle:hover,
.tp-seo__toggle:focus {
	border-color: var(--tp-primary);
	background: var(--tp-mint);
	color: var(--tp-primary-dark);
}

.tp-seo__toggle:focus-visible {
	outline: 3px solid var(--tp-navy);
	outline-offset: 3px;
}

/* Chevron xuong; xoay len khi da mo */
.tp-seo__toggle-icon {
	width: 9px;
	height: 9px;
	margin-top: -4px;
	border-right: 2.5px solid currentColor;
	border-bottom: 2.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform .25s ease;
}

.tp-seo__toggle[aria-expanded="true"] .tp-seo__toggle-icon {
	margin-top: 4px;
	transform: rotate(-135deg);
}

/* Sapo: cac doan truoc H2 dau tien */
.tp-seo .tp-seo__inner > p:not(h2 ~ p) {
	padding-left: 18px;
	border-left: 4px solid var(--tp-accent-2);
}

.tp-seo .tp-seo__inner > p:first-child {
	border-left-color: var(--tp-primary-light);
}

.tp-main .tp-seo__inner h2 {
	position: relative;
	margin: 2em 0 .7em;
	padding-left: 58px;
	font-size: clamp(1.15rem, 2.2vw, 1.5rem);
	line-height: 1.35;
	counter-increment: tp-h2;
}

.tp-main .tp-seo__inner > h2:first-child {
	margin-top: 0;
}

/* So thu tu trong squircle vang chu muc (khung icon app cua logo) */
.tp-main .tp-seo__inner h2::before {
	position: absolute;
	top: calc((1.35 * clamp(1.15rem, 2.2vw, 1.5rem) - 42px) / 2);
	left: 0;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 12px;
	background: var(--tp-gold);
	color: var(--tp-navy);
	font-size: 16px;
	font-weight: 900;
	box-sizing: border-box;
	content: counter(tp-h2);
}

/* Banner cuoi muc H2 dau tien (Featured Image trang chu, 800x800) */
.tp-seo__figure {
	max-width: 560px;
	margin: 28px auto 6px;
}

.tp-seo__img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	box-shadow: var(--tp-shadow-sm);
}

.tp-main .tp-seo__inner h3 {
	position: relative;
	margin: 1.5em 0 .5em;
	padding-left: 28px;
	font-size: 18.5px;
}

/* H3 bullet = 2 o pixel nho (xanh, vang) */
.tp-main .tp-seo__inner h3::before {
	position: absolute;
	top: .45em;
	left: 0;
	width: 18px;
	height: 8px;
	background:
		linear-gradient(var(--tp-primary), var(--tp-primary)) no-repeat 0 0 / 8px 8px,
		linear-gradient(var(--tp-gold), var(--tp-gold)) no-repeat 10px 0 / 8px 8px;
	content: "";
}

.tp-seo__inner ul,
.tp-seo__inner ol {
	margin: 0 0 1.2em;
	padding-left: 1.3em;
}

.tp-seo__inner li {
	margin-bottom: .45em;
}

.tp-seo__inner li::marker {
	color: var(--tp-primary);
}

.tp-seo__inner strong {
	color: var(--tp-navy);
}

/* Bang (khoi SEO + bang tham khao) */
.tp-table-wrap {
	margin: 0 0 1.4em;
	overflow-x: auto;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	background: #fff;
}

.tp-table-wrap table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 15.5px;
}

.tp-table-wrap th,
.tp-table-wrap td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--tp-border);
	text-align: left;
	vertical-align: top;
}

.tp-table-wrap thead th {
	background: var(--tp-accent-2);
	color: var(--tp-navy);
	font-weight: 800;
	white-space: nowrap;
}

.tp-table-wrap tbody th {
	color: var(--tp-navy);
	font-weight: 800;
}

.tp-table-wrap tr:last-child td,
.tp-table-wrap tr:last-child th {
	border-bottom: 0;
}

.tp-table-wrap tr:nth-child(even) td,
.tp-table-wrap tr:nth-child(even) th {
	background: #FAFCF3;
}

.tp-table td,
.tp-table tbody th {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.tp-calc .tp-table-wrap {
	margin-bottom: 0;
}

.tp-table--spec td {
	white-space: normal;
}

.tp-table--spec tbody th {
	width: 34%;
	background: var(--tp-mint);
	white-space: normal;
}

/* ==========================================================================
   17. SUBPAGES
   ========================================================================== */

.tp-page-hero {
	position: relative;
	overflow: hidden;
	padding: 48px 0 56px;
	background:
		radial-gradient(circle at 100% 0%, rgba(228, 247, 180, .9), transparent 32%),
		linear-gradient(180deg, var(--tp-bg-soft) 0%, #FFFFFF 100%);
	text-align: center;
}

/* Dia tron mint neo goc duoi trai, nam trong khoi (khong lo mep) */
.tp-page-hero::before {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 140px;
	height: 140px;
	border-radius: 0 100% 0 0;
	background: var(--tp-accent-2);
	opacity: .6;
	content: "";
}

.tp-page-hero .tp-container {
	position: relative;
	z-index: 1;
}

.tp-breadcrumbs {
	margin-bottom: 16px;
}

.tp-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14.5px;
}

.tp-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--tp-text);
}

.tp-breadcrumbs__item + .tp-breadcrumbs__item::before {
	width: 7px;
	height: 7px;
	border-top: 2px solid var(--tp-primary-light);
	border-right: 2px solid var(--tp-primary-light);
	transform: rotate(45deg);
	content: "";
}

.tp-body .tp-breadcrumbs__link {
	color: var(--tp-primary-dark);
	font-weight: 600;
	text-decoration: none;
}

.tp-body .tp-breadcrumbs__link:hover,
.tp-body .tp-breadcrumbs__link:focus {
	color: var(--tp-navy);
	text-decoration: underline;
}

.tp-main h1.tp-page-hero__title {
	max-width: 820px;
	margin: 0 auto 12px;
	font-size: clamp(1.3rem, 5vw, 2rem);
	line-height: 1.25;
}

.tp-page-hero__desc {
	max-width: 700px;
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.65;
}

/* Gioi thieu */
.tp-about__grid {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: 48px;
	align-items: start;
}

.tp-about__text p {
	font-size: 16.5px;
	line-height: 1.75;
}

.tp-values {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-values__item {
	position: relative;
	padding: 20px 22px 18px 66px;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	background: var(--tp-bg-soft);
}

.tp-values__item::before {
	position: absolute;
	top: 18px;
	left: 20px;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background:
		linear-gradient(var(--tp-gold), var(--tp-gold)) no-repeat 8px 8px / 14px 14px,
		var(--tp-primary);
	box-shadow: none;
	content: "";
}

.tp-main h3.tp-values__title {
	margin: 0 0 4px;
	font-size: 18px;
}

.tp-values__text {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.6;
}

/* Van ban dai (chinh sach, dieu kien, huong dan): KHONG collapse */
.tp-doc {
	max-width: 900px;
}

.tp-doc__updated {
	display: inline-block;
	margin: 0 0 8px;
	padding: 4px 14px;
	border-radius: 8px;
	background: var(--tp-mint);
	color: var(--tp-primary-dark);
	font-size: 14px;
	font-weight: 700;
}

/* Van ban dai da tu danh so trong tieu de ("Dieu 1", "Buoc 1") -> bo so tu dong, thay bang 2 o pixel nho */
.tp-main .tp-doc h2 {
	padding-left: 26px;
}

.tp-main .tp-doc h2::before {
	top: .5em;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	background:
		linear-gradient(var(--tp-gold), var(--tp-gold)) no-repeat 8px 8px / 8px 8px,
		var(--tp-primary);
	content: "";
}

.tp-main .tp-doc > h2:first-child,
.tp-main .tp-doc > .tp-doc__updated + h2 {
	margin-top: .6em;
}

/* Lien he: 4 the */
.tp-contact__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.tp-contact__card {
	padding: 26px 22px;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius-lg);
	background: #fff;
	box-shadow: var(--tp-shadow-sm);
}

.tp-contact__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 14px;
	border-radius: 14px;
	background: var(--tp-primary);
	color: #fff;
}

.tp-contact__icon svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tp-main h2.tp-contact__title {
	margin: 0 0 6px;
	font-size: 18px;
}

.tp-contact__value {
	margin: 0 0 4px;
	color: var(--tp-navy);
	font-weight: 700;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.tp-body .tp-contact__value a {
	color: var(--tp-primary);
	text-decoration: none;
}

.tp-contact__note {
	margin: 0;
	color: var(--tp-muted);
	font-size: 14.5px;
}

.tp-contact__company {
	max-width: 760px;
	margin: 0 auto;
}

/* FAQ accordion */
.tp-faq__list {
	display: grid;
	gap: 12px;
	max-width: 900px;
	margin: 0 auto;
}

.tp-faq__item {
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	background: #fff;
	box-shadow: var(--tp-shadow-sm);
}

.tp-main h2.tp-faq__q {
	margin: 0;
	font-size: 17.5px;
}

.tp-faq__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 18px 22px;
	border: 0;
	border-radius: var(--tp-radius);
	background: transparent;
	color: var(--tp-navy);
	font: inherit;
	font-weight: 700;
	line-height: 1.45;
	text-align: left;
	cursor: pointer;
}

.tp-faq__btn:hover,
.tp-faq__btn:focus {
	background: transparent;
	color: var(--tp-primary);
}

.tp-faq__btn:focus-visible {
	outline: 3px solid var(--tp-primary);
	outline-offset: -3px;
}

.tp-faq__icon {
	position: relative;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: var(--tp-mint);
	flex-shrink: 0;
}

.tp-faq__icon::before,
.tp-faq__icon::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2.5px;
	margin: -1.25px 0 0 -6px;
	border-radius: 2px;
	background: var(--tp-primary);
	content: "";
	transition: transform .2s ease;
}

.tp-faq__icon::after {
	transform: rotate(90deg);
}

.tp-faq__btn[aria-expanded="true"] .tp-faq__icon {
	background: var(--tp-primary);
}

.tp-faq__btn[aria-expanded="true"] .tp-faq__icon::before,
.tp-faq__btn[aria-expanded="true"] .tp-faq__icon::after {
	background: #fff;
}

.tp-faq__btn[aria-expanded="true"] .tp-faq__icon::after {
	transform: rotate(0deg);
}

.tp-faq__a {
	padding: 0 22px 18px;
}

.tp-faq__a p {
	margin: 0;
	line-height: 1.7;
}

/* ==========================================================================
   18. 404
   ========================================================================== */

.tp-404 {
	padding: 88px 0 104px;
	text-align: center;
}

.tp-404__code {
	margin: 0 0 30px;
	font-size: clamp(92px, 20vw, 196px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: .01em;
	color: var(--tp-navy);
	font-variant-numeric: tabular-nums;
}

@supports ((-webkit-text-stroke: 1px currentColor) and (paint-order: stroke)) {
	.tp-404__code {
		color: var(--tp-accent-1);
		-webkit-text-stroke: .055em var(--tp-navy);
		paint-order: stroke fill;
		text-shadow: .035em .045em 0 rgba(0, 0, 0, .18);
	}
}

.tp-main h1.tp-404__title {
	max-width: 56ch;
	margin: 0 auto 30px;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--tp-text);
}

/* ==========================================================================
   19. FOOTER
   ========================================================================== */

.tp-footer {
	padding: 64px 0 0;
	background: var(--tp-navy);
	color: #CFCBBE;
}

.tp-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
	gap: 40px;
}

.tp-body .tp-footer__logo-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	color: #fff;
	text-decoration: none;
}

.tp-body .tp-footer__logo-link:hover,
.tp-body .tp-footer__logo-link:focus {
	color: #fff;
}

.tp-footer__logo {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #fff;
}

.tp-footer__sitename {
	font-size: 22px;
	font-weight: 900;
}

.tp-footer__desc,
.tp-footer__legal {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.65;
}

.tp-footer__legal strong {
	color: #fff;
}

.tp-footer__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
}

.tp-footer__title::before {
	width: 10px;
	height: 10px;
	border-radius: 2px;
	background: var(--tp-gold);
	content: "";
}

.tp-footer__links,
.tp-footer__contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-footer__links li {
	margin-bottom: 10px;
}

.tp-body .tp-footer a {
	color: #F3F0E6;
	text-decoration: none;
}

.tp-body .tp-footer a:hover,
.tp-body .tp-footer a:focus {
	color: var(--tp-accent-1);
	text-decoration: underline;
}

.tp-footer__contact li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 12px;
	font-size: 15px;
	line-height: 1.55;
}

.tp-footer__label {
	color: var(--tp-accent-1);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.tp-footer__bottom {
	margin-top: 40px;
	padding: 20px 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.tp-footer__copy {
	margin: 0;
	font-size: 14px;
	text-align: center;
}

/* ==========================================================================
   20. RESPONSIVE
   ========================================================================== */

@media (min-width: 1025px) {
	.tp-stats {
		display: none;
	}
}

@media (max-width: 1024px) {
	.tp-hero {
		padding: 40px 0 82px;
	}

	.tp-hero__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.tp-hero__visual {
		display: contents;
	}

	.tp-main h1.tp-hero__title {
		order: 1;
	}

	.tp-hero__desc {
		order: 2;
		margin-bottom: 24px;
	}

	.tp-hero__content {
		order: 3;
		justify-self: center;
		max-width: 560px;
	}

	.tp-hero__art {
		order: 4;
		justify-self: center;
		margin-top: 28px;
	}

	.tp-stats {
		margin-top: -24px;
		margin-bottom: 8px;
	}

	.tp-about__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.tp-contact__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tp-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.tp-header__inner {
		min-height: 64px;
		gap: 12px;
	}

	.tp-header__cta {
		display: none;
	}

	.tp-header__toggle {
		display: block;
	}

	.tp-header__actions {
		margin-left: auto;
	}

	/* Panel off-canvas: fixed, KHONG nam trong phan tu co z-index so (header khong dat z-index) */
	.tp-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 1001;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		width: min(86vw, 340px);
		padding: 20px;
		background: #fff;
		box-shadow: -12px 0 40px rgba(28, 26, 20, .18);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .3s ease, visibility .3s ease;
		overflow-y: auto;
		box-sizing: border-box;
	}

	.tp-nav.is-open {
		transform: translateX(0);
		visibility: visible;
	}

	.tp-nav__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 16px;
		padding-bottom: 14px;
		border-bottom: 1px solid var(--tp-border);
	}

	.tp-nav__label {
		color: var(--tp-navy);
		font-size: 18px;
		font-weight: 800;
	}

	.tp-nav__close {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 8px 14px;
		border: 1px solid var(--tp-border);
		border-radius: 999px;
		background: #fff;
		color: var(--tp-navy);
		font-weight: 700;
		cursor: pointer;
	}

	.tp-nav__close:hover,
	.tp-nav__close:focus {
		background: var(--tp-bg-soft);
		color: var(--tp-navy);
	}

	.tp-nav__close-icon {
		position: relative;
		width: 14px;
		height: 14px;
	}

	.tp-nav__close-icon::before,
	.tp-nav__close-icon::after {
		position: absolute;
		top: 50%;
		left: 0;
		width: 14px;
		height: 2.5px;
		margin-top: -1.25px;
		border-radius: 2px;
		background: currentColor;
		content: "";
		transform: rotate(45deg);
	}

	.tp-nav__close-icon::after {
		transform: rotate(-45deg);
	}

	.tp-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.tp-body .tp-nav__link {
		padding: 13px 16px;
		border-radius: 14px;
		font-size: 17px;
	}

	.tp-nav__cta {
		display: inline-flex;
		margin-top: 20px;
	}

	.tp-hero__art {
		display: none;
	}

	.tp-section {
		padding: 56px 0;
	}

	.tp-section__head,
	.tp-section__head--center {
		margin-bottom: 30px;
	}

	.tp-seo {
		padding: 48px 0 60px;
	}

	.tp-seo__inner {
		padding: 30px 22px;
	}

	.tp-main .tp-seo__inner h2 {
		padding-left: 50px;
	}

	.tp-main .tp-seo__inner h2::before {
		width: 36px;
		height: 36px;
		top: calc((1.35 * clamp(1.15rem, 2.2vw, 1.5rem) - 36px) / 2);
		font-size: 14px;
	}

	.tp-page-hero {
		padding: 36px 0 44px;
	}

	.tp-footer {
		padding-top: 48px;
	}

	/* 2 cot link "MoneyCash" + "Chinh sach" dung ngang hang; brand va lien he chiem ca hang */
	.tp-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
	}

	.tp-footer__brand,
	.tp-footer__col--contact {
		grid-column: 1 / -1;
	}

	.tp-404 {
		padding: 56px 0 72px;
	}

	.tp-main h1.tp-404__title {
		font-size: 17.5px;
	}
}

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

	.tp-header__sitename {
		font-size: 19px;
	}

	.tp-loan {
		padding: 22px 18px;
	}

	.tp-loan__value {
		font-size: 23px;
	}

	.tp-stats__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.tp-contact__grid {
		grid-template-columns: 1fr;
	}

	.tp-table-wrap th,
	.tp-table-wrap td {
		padding: 10px 12px;
	}
}

@media (max-width: 1024px) {
	.tp-checker__grid,
	.tp-notes__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.tp-pixels__board {
		grid-template-columns: 1fr;
		grid-template-areas: "counter" "track" "legend";
		gap: 22px;
	}

	.tp-pixels__counter {
		flex-direction: row;
		gap: 14px;
		padding: 16px 20px;
	}

	.tp-pixels__unit {
		margin-top: 0;
	}

	.tp-ribbon__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tp-ribbon__item + .tp-ribbon__item {
		border-left: 0;
	}

	.tp-ribbon__item:not(:nth-child(3n + 1)) {
		border-left: 6px solid var(--tp-primary-dark);
	}

	.tp-ribbon__item:nth-child(n + 4) {
		border-top: 6px solid var(--tp-primary-dark);
	}

	.tp-steps__row {
		grid-template-columns: 60px minmax(0, 1fr);
		gap: 6px 18px;
	}

	.tp-steps__num {
		grid-row: 1 / span 3;
		align-self: start;
	}

	.tp-main h3.tp-steps__title,
	.tp-steps__text,
	.tp-steps__chip {
		grid-column: 2;
	}

	.tp-steps__chip {
		justify-self: start;
		margin-top: 4px;
	}

	.tp-perks__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.tp-pixels__board {
		padding: 24px 18px;
	}

	.tp-pixels__grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 6px;
	}

	.tp-pixels__cell:nth-child(9) {
		grid-column: auto;
	}

	.tp-pixels__axis {
		display: none;
	}

	.tp-pixels__legend {
		grid-template-columns: 1fr;
	}

	.tp-pixels__num {
		font-size: 42px;
	}

	.tp-ribbon__band {
		padding: 4px 24px;
		clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
	}

	.tp-ribbon__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tp-ribbon__item:nth-child(odd) {
		border-left: 0;
	}

	.tp-ribbon__item:nth-child(even) {
		border-left: 5px solid var(--tp-primary-dark);
	}

	.tp-ribbon__item:nth-child(n + 3) {
		border-top: 5px solid var(--tp-primary-dark);
	}

	.tp-ribbon__item {
		padding: 18px 10px;
	}

	.tp-ribbon__item dd {
		font-size: 17.5px;
	}

	.tp-flow__pair {
		grid-template-columns: 1fr;
	}

	.tp-flow__arrow {
		min-height: 64px;
	}

	.tp-flow__arrow::before {
		left: 18%;
		right: 18%;
	}

	.tp-checker__board {
		grid-template-columns: 1fr;
	}

	/* 1 cot: xen ke xanh / trang (o 3 xanh, o 4 trang) de giu nhip ban co */
	.tp-checker__cell:nth-child(3) {
		background: var(--tp-primary-dark);
		color: #DCE4FA;
	}

	.tp-main .tp-checker__cell:nth-child(3) h3.tp-checker__title {
		color: #fff;
	}

	.tp-checker__cell:nth-child(3) .tp-checker__num {
		color: var(--tp-gold);
	}

	.tp-checker__cell:nth-child(4) {
		background: #fff;
		color: var(--tp-text);
	}

	.tp-main .tp-checker__cell:nth-child(4) h3.tp-checker__title {
		color: var(--tp-navy);
	}

	.tp-checker__cell:nth-child(4) .tp-checker__num {
		color: var(--tp-gold-deep);
	}

	.tp-steps__row {
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 4px 14px;
	}

	.tp-steps__num {
		font-size: 32px;
	}

	.tp-perks__grid {
		grid-template-columns: 1fr;
	}

	.tp-cta {
		flex-direction: column;
		align-items: flex-start;
		padding: 40px 26px 34px;
	}

	.tp-company__row {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.tp-main .tp-doc h2 {
		padding-left: 26px;
	}

	.tp-main .tp-doc h2::before {
		top: .45em;
		width: 16px;
		height: 16px;
	}
}

@media (max-width: 480px) {
	.tp-company {
		padding: 30px 18px 18px;
	}

	.tp-flow__box {
		padding: 22px 18px;
	}

	.tp-pixels__cell {
		font-size: 11px;
	}
}

/* ==========================================================================
   21. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}

	.tp-art__px,
	.tp-art__note,
	.tp-art__coin {
		animation: none !important;
	}
}
