/*
 Theme Name:   GeneratePress Child – FlashTai
 Theme URI:    http://flashtai.localhost/
 Description:  Child theme FlashTai (concept "Một ngày của hồ sơ FlashTai"). Toàn bộ CSS nằm trong file này.
 Author:       FlashTai
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  flashtai
*/

/* ==========================================================================
   1. VARIABLES
   ========================================================================== */
:root {
	--ft-coral: #FA6B6B;
	--ft-coral-deep: #F24A55;
	--ft-coral-light: #FF9C9C;
	--ft-coral-soft: #FFE1DE;
	--ft-primary: #D42E3F;
	--ft-primary-dark: #B8233A;
	--ft-coral-text: #C8283A;
	--ft-gold: #FFD23F;
	--ft-gold-deep: #E9A400;
	--ft-gold-soft: #FFF0B8;
	--ft-gold-text: #8A5E00;
	--ft-ink: #1F1D33;
	--ft-text: #4A4860;
	--ft-muted: #6E6C82;
	--ft-cream: #FFF8E1;
	--ft-blush: #FFF1EF;
	--ft-border: #F3DCD8;
	--ft-line: #ECE6EE;
	--ft-footer: #18162A;
	--ft-white: #FFFFFF;
	--ft-gradient: linear-gradient(135deg, #FF9C9C 0%, #FA6B6B 45%, #F24A55 100%);
	--ft-deep: linear-gradient(135deg, #2A2645 0%, #1F1D33 100%);
	--ft-shadow-sm: 0 2px 8px rgba(31, 29, 51, .06);
	--ft-shadow-md: 0 10px 28px rgba(31, 29, 51, .09);
	--ft-shadow-lg: 0 22px 48px rgba(31, 29, 51, .14);
	--ft-radius: 18px;
	--ft-radius-lg: 26px;
	--ft-container: 1180px;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
html,
body {
	overflow-x: clip;
}

body.ft-body {
	background: var(--ft-white);
	color: var(--ft-text);
}

.ft-main {
	display: block;
	color: var(--ft-text);
}

:where(.ft-main) p {
	margin: 0 0 1em;
}

.ft-main h1,
.ft-main h2,
.ft-main h3,
.ft-main h4,
.ft-main h5,
.ft-main h6 {
	margin: 0;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ft-ink);
}

.ft-main ul,
.ft-main ol {
	margin: 0;
	padding: 0;
}

.ft-main a {
	color: var(--ft-coral-text);
}

.ft-main a:hover,
.ft-main a:focus {
	color: var(--ft-primary-dark);
}

.ft-main img {
	max-width: 100%;
	height: auto;
}

.ft-container {
	width: 100%;
	max-width: var(--ft-container);
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.ft-icon {
	display: block;
	width: 1em;
	height: 1em;
	flex: none;
}

.ft-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.ft-skip {
	position: absolute;
	left: 12px;
	top: -80px;
	z-index: 1000;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--ft-ink);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.ft-skip:focus {
	top: 12px;
	color: #fff;
}

:focus-visible {
	outline: 3px solid rgba(212, 46, 63, .45);
	outline-offset: 2px;
}

.ft-center {
	margin-top: 40px;
	text-align: center;
}

/* ---- Buttons (KHAI BAO DU background/color/border vi GeneratePress style button mac dinh) ---- */
.ft-btn,
.ft-btn:visited {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border: 0;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.ft-btn--primary,
.ft-btn--primary:visited {
	background: var(--ft-primary);
	color: #fff;
	box-shadow: 0 8px 20px rgba(212, 46, 63, .26);
}

.ft-btn--primary:hover,
.ft-btn--primary:focus {
	background: var(--ft-primary-dark);
	color: #fff;
}

.ft-btn--light,
.ft-btn--light:visited {
	background: #fff;
	color: var(--ft-primary);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

.ft-btn--light:hover,
.ft-btn--light:focus {
	background: var(--ft-blush);
	color: var(--ft-primary-dark);
}

.ft-btn--lg {
	padding: 14px 30px;
	font-size: 17px;
}

.ft-btn--block {
	width: 100%;
}

.ft-btn .btn-text {
	transition: opacity .15s ease;
}

.ft-btn.btn-loading {
	pointer-events: none;
}

.ft-btn.btn-loading .btn-text {
	opacity: 0;
}

.ft-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: ft-spin .7s linear infinite;
}

@keyframes ft-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ==========================================================================
   3. HEADER
   ========================================================================== */
.ft-header {
	position: relative;
	background: #fff;
	border-bottom: 1px solid var(--ft-border);
}

.ft-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 76px;
}

.ft-header__brand,
.ft-header__brand:visited {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ft-ink);
	text-decoration: none;
}

.ft-header__logo {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	object-fit: contain;
}

.ft-header__sitename {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--ft-ink);
}

.ft-header__brand:hover .ft-header__sitename {
	color: var(--ft-primary);
}

.ft-nav {
	flex: 1;
}

.ft-nav__head,
.ft-nav__cta {
	display: none;
}

.ft-nav__list {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ft-nav__link,
.ft-nav__link:visited {
	position: relative;
	display: block;
	padding: 10px 14px;
	color: var(--ft-ink);
	font-weight: 600;
	text-decoration: none;
	border-radius: 999px;
}

.ft-nav__link:hover,
.ft-nav__link:focus {
	color: var(--ft-primary);
	background: var(--ft-blush);
}

/* Active: vach cong nho san ho duoi chu (motif dai lua) */
.ft-nav__link--active,
.ft-nav__link--active:visited {
	color: var(--ft-primary);
	pointer-events: none;
}

.ft-nav__link--active::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 2px;
	width: 28px;
	height: 6px;
	margin-left: -14px;
	border-bottom: 3px solid var(--ft-coral);
	border-radius: 0 0 50% 50%;
	box-sizing: border-box;
}

.ft-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ft-header__toggle {
	display: none;
}

.ft-nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 998;
	background: rgba(24, 22, 42, .5);
}

.ft-nav-overlay[hidden] {
	display: none;
}

/* ==========================================================================
   4. HERO (giu khuon CLAUDE-TEMPLATE: 2 cot 1.1fr / 0.8fr)
   ========================================================================== */
.ft-hero {
	position: relative;
	padding: 56px 0 132px;
	background:
		radial-gradient(520px 360px at 92% 4%, rgba(250, 107, 107, .12), transparent 70%),
		radial-gradient(420px 300px at 6% 96%, rgba(255, 210, 63, .14), transparent 70%),
		linear-gradient(180deg, #FFF8F3 0%, #fff 100%);
}

.ft-hero__grid {
	display: grid;
	grid-template-columns: 1.1fr .8fr;
	gap: 48px;
	align-items: start;
}

.ft-main h1.ft-hero__title {
	font-size: clamp(1.3rem, 5vw, 2rem);
	line-height: 1.28;
}

.ft-hero__desc {
	max-width: 58ch;
	margin: 16px 0 0;
	font-size: 17px;
	color: var(--ft-text);
}

.ft-hero__art {
	position: relative;
	max-width: 400px;
	margin-top: 18px;
	box-sizing: border-box;
}

.ft-hero__svg {
	display: block;
	width: 100%;
	height: auto;
}

/* To lich xe co 2 khoen "3H xet duyet" */
.ft-hero__page {
	position: absolute;
	right: 4px;
	top: 6px;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 96px;
	padding: 20px 0 12px;
	border-radius: 10px 10px 14px 14px;
	background: #fff;
	box-shadow: 0 12px 24px rgba(31, 29, 51, .14);
	transform: rotate(6deg);
	line-height: 1.1;
	overflow: hidden;
}

.ft-hero__page::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 16px;
	background: var(--ft-coral-deep);
}

.ft-hero__page::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 6px;
	background: repeating-linear-gradient(90deg, var(--ft-border) 0 6px, transparent 6px 10px);
}

.ft-hero__rings {
	position: absolute;
	top: 4px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-around;
	padding: 0 16px;
}

.ft-hero__rings span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3);
}

.ft-hero__page-num {
	position: relative;
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--ft-coral-text);
}

.ft-hero__page-text {
	position: relative;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ft-ink);
}

.ft-hero__content {
	display: flex;
	justify-content: flex-end;
}

/* ---- Widget uoc tinh ---- */
.ft-calc {
	width: 100%;
	max-width: 500px;
	padding: 28px;
	border: 1px solid var(--ft-border);
	border-radius: var(--ft-radius-lg);
	background: #fff;
	box-shadow: var(--ft-shadow-lg);
	box-sizing: border-box;
}

.ft-main .ft-calc__title {
	margin: 0 0 18px;
	font-size: 19px;
	font-weight: 800;
	color: var(--ft-ink);
}

.ft-calc__amount-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.ft-main .ft-calc__label {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--ft-muted);
}

.ft-calc__amount {
	font-size: 28px;
	font-weight: 800;
	color: var(--ft-coral-text);
	font-variant-numeric: tabular-nums;
}

.ft-calc__range {
	--ft-fill: 25%;
	display: block;
	width: 100%;
	height: 28px;
	margin: 10px 0 4px;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.ft-calc__range::-webkit-slider-runnable-track {
	height: 8px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ft-coral-light) 0, var(--ft-coral-deep) var(--ft-fill), #F4E6E4 var(--ft-fill));
}

.ft-calc__range::-moz-range-track {
	height: 8px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ft-coral-light) 0, var(--ft-coral-deep) var(--ft-fill), #F4E6E4 var(--ft-fill));
}

.ft-calc__range::-webkit-slider-thumb {
	width: 26px;
	height: 26px;
	margin-top: -9px;
	border: 5px solid #fff;
	border-radius: 50%;
	background: var(--ft-primary);
	box-shadow: 0 2px 10px rgba(184, 35, 58, .45);
	-webkit-appearance: none;
	appearance: none;
}

.ft-calc__range::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border: 5px solid #fff;
	border-radius: 50%;
	background: var(--ft-primary);
	box-shadow: 0 2px 10px rgba(184, 35, 58, .45);
}

.ft-calc__scale {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: var(--ft-muted);
}

.ft-main .ft-calc__rows {
	margin: 18px 0 16px;
	padding: 0;
}

.ft-calc__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
}

.ft-calc__row dt {
	font-size: 15px;
	color: var(--ft-text);
}

.ft-main .ft-calc__row dd {
	margin: 0;
	font-weight: 700;
	color: var(--ft-ink);
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}

.ft-calc__sub {
	font-size: 13px;
	color: var(--ft-muted);
}

.ft-main .ft-calc__row dd.ft-calc__zero {
	color: var(--ft-coral-text);
}

.ft-calc__row--total {
	margin-top: 8px;
	padding: 10px 14px;
	border: 0;
	border-radius: 14px;
	background: var(--ft-blush);
}

.ft-calc__row--total dt {
	font-weight: 700;
	color: var(--ft-ink);
}

.ft-main .ft-calc__row--total dd {
	font-size: 24px;
	font-weight: 800;
	color: var(--ft-coral-text);
}

.ft-main .ft-calc__note {
	margin: -4px 0 14px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--ft-gold-soft);
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--ft-gold-text);
}

.ft-main .ft-calc__note[hidden] {
	display: none;
}

.ft-main .ft-calc__hint {
	margin: 14px 0 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--ft-muted);
	text-align: center;
}

.ft-main .ft-calc__hint a {
	text-decoration: none;
	font-weight: 600;
}

/* ---- Stats bar (chi tablet / mobile) ---- */
.ft-stats-wrap {
	position: relative;
	margin-top: -16px;
}

.ft-main .ft-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	padding: 16px;
	border: 1px solid var(--ft-border);
	border-radius: var(--ft-radius);
	background: #fff;
	box-shadow: var(--ft-shadow-md);
	list-style: none;
}

.ft-stats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ft-stats__value {
	font-size: 18px;
	font-weight: 800;
	color: var(--ft-coral-text);
}

.ft-stats__label {
	font-size: 13px;
	color: var(--ft-muted);
}

@media (min-width: 1025px) {
	.ft-stats-wrap {
		display: none;
	}

	/* Desktop khong co stats chong len hero -> bo phan dem duoi (bay VF Money) */
	.ft-hero {
		padding-bottom: 80px;
	}
}

/* ---- Bang trong noi dung ---- */
.ft-main .ft-table-wrap {
	margin: 18px 0 22px;
	overflow-x: auto;
	border: 1px solid var(--ft-border);
	border-radius: var(--ft-radius);
	background: #fff;
}

.ft-main .ft-table-wrap table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 15.5px;
	line-height: 1.55;
}

.ft-main .ft-table-wrap th,
.ft-main .ft-table-wrap td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--ft-border);
	text-align: left;
	vertical-align: top;
}

.ft-main .ft-table-wrap thead th {
	background: var(--ft-blush);
	color: var(--ft-ink);
	font-weight: 800;
}

.ft-main .ft-table-wrap tbody tr:last-child th,
.ft-main .ft-table-wrap tbody tr:last-child td {
	border-bottom: 0;
}

/* ==========================================================================
   5. SECTIONS
   ========================================================================== */
.ft-section {
	padding: 80px 0;
}

.ft-section--cream {
	background: #fff8e16b;
}

.ft-section--blush {
	background: var(--ft-blush);
}

.ft-section--flush-top {
	padding-top: 40px;
}

.ft-section--flush-bottom {
	padding-bottom: 24px;
}

.ft-section__head {
	max-width: 720px;
	margin: 0 auto 40px;
	text-align: center;
}

.ft-main .ft-section__title {
	font-size: clamp(21px, 2.8vw, 28px);
	line-height: 1.3;
}

.ft-main .ft-section__desc {
	margin: 12px 0 0;
	font-size: 16.5px;
	color: var(--ft-text);
}

/* ==========================================================================
   6. SIGNATURE: "HO SO FLASHTAI QUA KHUNG CHAT HO TRO" (cot trai giu nguyen)
   ========================================================================== */
.ft-day {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	gap: 56px;
	align-items: center;
}

.ft-main .ft-day__intro .ft-section__desc {
	margin-bottom: 26px;
}

.ft-main .ft-day__facts {
	display: grid;
	gap: 12px;
	margin: 0;
}

.ft-day__fact {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 4px 16px;
	padding: 14px 18px 14px 20px;
	/* Vien manh de the khong chim khi section nen trang (trang chu), van hop nen kem (/quy-trinh-vay/) */
	border: 1px solid var(--ft-border);
	border-left: 5px solid var(--ft-coral);
	border-radius: 0 14px 14px 0;
	background: #fff;
	box-shadow: var(--ft-shadow-sm);
}

.ft-day__fact--gold {
	border-left-color: var(--ft-gold-deep);
}

.ft-day__fact--ink {
	border-left-color: var(--ft-ink);
}

.ft-day__fact dt {
	font-size: 15px;
	font-weight: 600;
	color: var(--ft-muted);
}

.ft-main .ft-day__fact dd {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin: 0;
	text-align: right;
}

.ft-day__fact dd strong {
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--ft-coral-text);
}

.ft-day__fact--gold dd strong {
	color: var(--ft-gold-text);
}

.ft-day__fact--ink dd strong {
	color: var(--ft-ink);
}

.ft-day__fact dd span {
	font-size: 13px;
	color: var(--ft-muted);
}

/* Khung chat ho tro (minh hoa, khong co o nhap tin nhan) */
.ft-chat {
	margin: 0;
	border: 1px solid var(--ft-border);
	border-radius: var(--ft-radius-lg);
	background: #fff;
	box-shadow: var(--ft-shadow-lg);
	overflow: hidden;
}

.ft-chat__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--ft-line);
	background: linear-gradient(90deg, #fff 0%, var(--ft-blush) 100%);
}

.ft-chat__avatar {
	position: relative;
	display: flex;
	flex: none;
	padding: 3px;
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--ft-shadow-sm);
}

.ft-chat__avatar img {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	object-fit: contain;
}

/* Cham "dang truc tuyen" tren avatar */
.ft-chat__avatar::after {
	content: "";
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 12px;
	height: 12px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #2FB36B;
}

.ft-chat__who {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.ft-chat__name {
	font-size: 17px;
	font-weight: 800;
	color: var(--ft-ink);
}

.ft-chat__status {
	font-size: 13px;
	color: var(--ft-muted);
}

.ft-chat__tag {
	margin-left: auto;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--ft-gold-soft);
	color: var(--ft-gold-text);
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
}

.ft-main .ft-chat__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px 20px 24px;
	list-style: none;
	background:
		radial-gradient(circle at 1px 1px, rgba(31, 29, 51, .05) 1px, transparent 0) 0 0 / 18px 18px,
		#FFFCF6;
}

.ft-chat__item {
	position: relative;
	display: flex;
	max-width: 100%;
	transition: opacity .35s ease, transform .35s ease;
}

.ft-chat__item--me {
	justify-content: flex-end;
}

.ft-chat__item--gap {
	justify-content: center;
}

.ft-chat__bubble {
	position: relative;
	max-width: 80%;
	padding: 10px 14px 8px;
	border-radius: 18px;
	box-sizing: border-box;
	transition: opacity .25s ease;
}

.ft-chat__item--bot .ft-chat__bubble {
	border: 1px solid var(--ft-line);
	border-bottom-left-radius: 6px;
	background: #fff;
	box-shadow: var(--ft-shadow-sm);
}

.ft-chat__item--me .ft-chat__bubble {
	border-bottom-right-radius: 6px;
	/* San ho dam: chu trang >= 4,9:1 (gradient nhat --ft-gradient chi 2,x:1) */
	background: linear-gradient(135deg, #D42E3F 0%, #B8233A 100%);
	color: #fff;
}

.ft-main .ft-chat__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ft-text);
}

.ft-main .ft-chat__item--me .ft-chat__text {
	color: #fff;
}

.ft-main .ft-chat__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 2px;
	font-size: 16px;
	font-weight: 800;
	color: var(--ft-ink);
}

.ft-chat__title .ft-icon {
	width: 22px;
	height: 22px;
	color: #2FB36B;
}

/* Tin giai ngan: the vang */
.ft-chat__item--money .ft-chat__bubble {
	border-color: #F5D77A;
	background: linear-gradient(135deg, #FFF8D6 0%, #FFE9A3 100%);
}

.ft-main .ft-chat__label {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--ft-gold-text);
}

.ft-main .ft-chat__amount {
	margin: 0 0 2px;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--ft-ink);
	font-variant-numeric: tabular-nums;
}

.ft-chat__time {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	margin-top: 4px;
	font-size: 12px;
	color: var(--ft-muted);
	font-variant-numeric: tabular-nums;
}

.ft-chat__item--me .ft-chat__time {
	color: rgba(255, 255, 255, .9);
}

/* Hai dau tich "da xem" */
.ft-chat__seen {
	position: relative;
	width: 16px;
	height: 10px;
}

.ft-chat__seen::before,
.ft-chat__seen::after {
	content: "";
	position: absolute;
	top: 0;
	width: 5px;
	height: 8px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(40deg);
}

.ft-chat__seen::before {
	left: 2px;
}

.ft-chat__seen::after {
	left: 7px;
}

/* Vach ngan the hien khoang thoi gian giua cac tin */
.ft-chat__gap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 14px;
	border: 1px dashed var(--ft-coral);
	border-radius: 999px;
	background: var(--ft-blush);
	color: var(--ft-coral-text);
	font-size: 13px;
	font-weight: 800;
}

.ft-chat__item--gap:nth-child(5) .ft-chat__gap {
	border-color: var(--ft-gold-deep);
	background: var(--ft-gold-soft);
	color: var(--ft-gold-text);
}

.ft-chat__gap .ft-icon {
	width: 16px;
	height: 16px;
}

/* Dau "dang nhap": nam dung cho bong bong cua tin FlashTai sap hien */
.ft-chat__dots {
	position: absolute;
	left: 0;
	top: 0;
	display: none;
	gap: 5px;
	padding: 12px 16px;
	border: 1px solid var(--ft-line);
	border-radius: 18px 18px 18px 6px;
	background: #fff;
}

.ft-chat__dots span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ft-muted);
	animation: ft-typing 1s ease-in-out infinite;
}

.ft-chat__dots span:nth-child(2) {
	animation-delay: .15s;
}

.ft-chat__dots span:nth-child(3) {
	animation-delay: .3s;
}

@keyframes ft-typing {
	0%, 60%, 100% {
		opacity: .35;
		transform: translateY(0);
	}

	30% {
		opacity: 1;
		transform: translateY(-3px);
	}
}

/* Trang thai JS: giu nguyen chieu cao (opacity / visibility), khong nhay layout */
.ft-chat.is-armed .ft-chat__item {
	opacity: 0;
	transform: translateY(10px);
}

.ft-chat.is-armed .ft-chat__item.is-typing,
.ft-chat.is-armed .ft-chat__item.is-shown {
	opacity: 1;
	transform: none;
}

.ft-chat__item.is-typing .ft-chat__bubble {
	opacity: 0;
}

.ft-chat__item.is-typing .ft-chat__dots {
	display: flex;
}

.ft-main .ft-chat__caption {
	margin: 0;
	padding: 12px 20px 16px;
	border-top: 1px solid var(--ft-line);
	font-size: 13px;
	line-height: 1.5;
	color: var(--ft-muted);
}

/* ==========================================================================
   7. QUY TRINH 4 BUOC "DAI LUA DAM DAN"
   ========================================================================== */
.ft-main .ft-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	list-style: none;
}

.ft-steps__item {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--ft-border);
	border-radius: var(--ft-radius-lg);
	background: #fff;
	box-shadow: var(--ft-shadow-sm);
	overflow: hidden;
	transition: transform .5s ease, opacity .5s ease;
}

.ft-steps__ribbon {
	--ft-rib: var(--ft-coral-light);
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	height: 92px;
	padding: 18px 20px 0;
	background: var(--ft-rib);
	color: #fff;
	box-sizing: border-box;
	overflow: hidden;
}

/* Mep duoi cong nhu dai lua chu F */
.ft-steps__ribbon::after {
	content: "";
	position: absolute;
	left: -10%;
	right: -40%;
	bottom: -38px;
	height: 64px;
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
	background: #fff;
}

.ft-steps__item--2 .ft-steps__ribbon {
	--ft-rib: var(--ft-coral);
}

.ft-steps__item--3 .ft-steps__ribbon {
	--ft-rib: var(--ft-coral-deep);
}

.ft-steps__item--4 .ft-steps__ribbon {
	--ft-rib: var(--ft-primary);
}

.ft-steps__num {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	color: var(--ft-coral-text);
	font-size: 17px;
	font-weight: 800;
	box-shadow: 0 6px 14px rgba(31, 29, 51, .12);
}

.ft-steps__ribbon .ft-icon {
	position: relative;
	width: 30px;
	height: 30px;
	opacity: .95;
}

.ft-steps__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 6px 22px 24px;
}

.ft-main .ft-steps__title {
	margin-bottom: 8px;
	font-size: 18px;
	line-height: 1.35;
}

.ft-main .ft-steps__desc {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.6;
}

.ft-main .ft-steps__chip {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 6px;
	margin: 14px 0 0;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--ft-blush);
	color: var(--ft-coral-text);
	font-size: 14px;
	font-weight: 800;
}

.ft-steps__item--4 .ft-steps__chip {
	background: var(--ft-gold-soft);
	color: var(--ft-gold-text);
}

.ft-steps__chip .ft-icon {
	width: 16px;
	height: 16px;
}

.ft-steps.is-reveal .ft-steps__item {
	opacity: 0;
	transform: translateY(26px);
}

.ft-steps.is-reveal.is-in .ft-steps__item {
	opacity: 1;
	transform: none;
}

.ft-steps.is-reveal.is-in .ft-steps__item--2 {
	transition-delay: .12s;
}

.ft-steps.is-reveal.is-in .ft-steps__item--3 {
	transition-delay: .24s;
}

.ft-steps.is-reveal.is-in .ft-steps__item--4 {
	transition-delay: .36s;
}

/* ==========================================================================
   8. CHI TIET KHOAN VAY: spec sheet + vi du
   ========================================================================== */
.ft-detail {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	align-items: start;
}

.ft-spec {
	padding: 26px 28px;
	border: 1px solid var(--ft-border);
	border-radius: var(--ft-radius-lg);
	background: #fff;
	box-shadow: var(--ft-shadow-sm);
}

.ft-main .ft-spec__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 800;
	color: var(--ft-ink);
}

.ft-spec__title .ft-icon {
	width: 24px;
	height: 24px;
	color: var(--ft-coral);
}

.ft-main .ft-spec__list {
	margin: 0;
}

.ft-spec__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	border-top: 1px dashed var(--ft-border);
	font-size: 15.5px;
}

.ft-spec__row dt {
	color: var(--ft-muted);
}

.ft-main .ft-spec__row dd {
	margin: 0;
	font-weight: 700;
	color: var(--ft-ink);
	text-align: right;
}

.ft-example {
	position: relative;
	padding: 28px;
	border-radius: var(--ft-radius-lg);
	background: var(--ft-deep);
	color: #E4E1F0;
	overflow: hidden;
}

.ft-example::before {
	content: "";
	position: absolute;
	right: -70px;
	top: -90px;
	width: 240px;
	height: 240px;
	border: 26px solid rgba(250, 107, 107, .22);
	border-left-color: transparent;
	border-bottom-color: transparent;
	border-radius: 50%;
	box-sizing: border-box;
	pointer-events: none;
}

.ft-main .ft-example__kicker {
	position: relative;
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--ft-coral-light);
}

.ft-main .ft-example__case {
	position: relative;
	margin: 4px 0 6px;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.15;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.ft-main .ft-example__lead {
	position: relative;
	margin: 0 0 16px;
	font-size: 14.5px;
}

.ft-main .ft-example__rows {
	position: relative;
	display: grid;
	gap: 14px;
	list-style: none;
}

.ft-example__row {
	display: grid;
	grid-template-columns: 74px 1fr;
	align-items: center;
	gap: 6px 14px;
}

.ft-example__days {
	grid-row: span 2;
	white-space: nowrap;
	font-size: 15px;
	font-weight: 800;
	color: #fff;
}

.ft-example__bar {
	display: block;
	height: 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	overflow: hidden;
}

.ft-example__bar-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #FF9C9C, #FA6B6B);
	transform-origin: left center;
	transition: transform .9s ease;
}

/* Ti le that: lai 66.575 / 199.726 / 399.452 */
.ft-example__bar-fill--30 {
	width: 16.7%;
}

.ft-example__bar-fill--90 {
	width: 50%;
}

.ft-example__bar-fill--180 {
	width: 100%;
}

.ft-example.is-reveal .ft-example__bar-fill {
	transform: scaleX(0);
}

.ft-example.is-reveal.is-in .ft-example__bar-fill {
	transform: none;
}

.ft-example__nums {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2px 12px;
	font-size: 14.5px;
	font-variant-numeric: tabular-nums;
}

.ft-example__interest {
	color: var(--ft-coral-light);
	font-weight: 700;
}

.ft-example__total {
	color: #fff;
	font-weight: 700;
}

.ft-main .ft-example__late {
	position: relative;
	display: flex;
	gap: 10px;
	margin: 20px 0 0;
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba(255, 210, 63, .12);
	color: #FFE9A3;
	font-size: 14px;
	line-height: 1.5;
}

.ft-example__late .ft-icon {
	width: 20px;
	height: 20px;
	margin-top: 1px;
	color: var(--ft-gold);
}

.ft-main .ft-example__formula {
	position: relative;
	margin: 14px 0 0;
	font-size: 13px;
	color: #B7B3C9;
}

/* ---- Hop canh bao rui ro ---- */
.ft-risk {
	margin-top: 28px;
	padding: 22px 26px;
	border: 1px solid #F4C9C4;
	border-radius: var(--ft-radius);
	background: #fff;
}

.ft-main .ft-risk__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 800;
	color: var(--ft-coral-text);
}

.ft-risk__title .ft-icon {
	width: 22px;
	height: 22px;
}

.ft-main .ft-risk__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 28px;
	padding-left: 20px;
	font-size: 15px;
	line-height: 1.6;
}

.ft-risk__list li::marker {
	color: var(--ft-coral);
}

/* ==========================================================================
   9. UU DIEM: so thu tu trong dong xu vang
   ========================================================================== */
.ft-main .ft-pros {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
	list-style: none;
}

.ft-pros__item {
	grid-column: span 2;
	padding: 26px 24px;
	border: 1px solid var(--ft-border);
	border-radius: var(--ft-radius-lg);
	background: #fff;
	box-shadow: var(--ft-shadow-sm);
	transition: transform .5s ease, opacity .5s ease;
}

.ft-pros__item:nth-child(4) {
	grid-column: 2 / span 2;
}

.ft-pros__coin {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin-bottom: 16px;
	border: 3px solid var(--ft-gold-deep);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #FFF0A8 0%, #FFD23F 55%, #F2B300 100%);
	box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .45), 0 6px 0 #D99A00;
	color: var(--ft-gold-text);
	font-size: 22px;
	font-weight: 800;
	box-sizing: border-box;
}

.ft-main .ft-pros__title {
	margin-bottom: 8px;
	font-size: 18px;
}

.ft-main .ft-pros__desc {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.6;
}

.ft-pros.is-reveal .ft-pros__item {
	opacity: 0;
	transform: translateY(22px);
}

.ft-pros.is-reveal.is-in .ft-pros__item {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   10. DIEU KIEN: 5 o gia tri lon
   ========================================================================== */
.ft-main .ft-cond {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	list-style: none;
}

.ft-cond__item {
	position: relative;
	padding: 24px 20px 22px;
	border-radius: var(--ft-radius);
	background: #fff;
	box-shadow: var(--ft-shadow-sm);
	overflow: hidden;
}

.ft-cond__item::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 5px;
	background: var(--ft-gradient);
}

.ft-main .ft-cond__value {
	margin: 0 0 10px;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--ft-coral-text);
}

.ft-cond__value span {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ft-muted);
}

.ft-main .ft-cond__title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ft-main .ft-cond__desc {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
}

/* ==========================================================================
   11. KHOI NOI DUNG SEO (khong collapse)
   ========================================================================== */
.ft-seo {
	padding: 80px 0 88px;
	background: #fff;
	border-top: 1px solid var(--ft-border);
}

.ft-seo__inner {
	max-width: 860px;
	margin: 0 auto;
	font-size: 16.5px;
	line-height: 1.78;
	counter-reset: ft-h2;
}

.ft-main .ft-seo__sapo {
	margin-bottom: 12px;
	padding: 4px 0 4px 22px;
	border-left: 4px solid var(--ft-coral);
}

.ft-main .ft-seo__sapo p:last-child {
	margin-bottom: 0;
}

.ft-main .ft-seo__inner h2 {
	position: relative;
	margin: 44px 0 16px;
	padding: 28px 0 0 64px;
	border-top: 1px solid var(--ft-border);
	font-size: clamp(20px, 2.5vw, 25px);
	line-height: 1.35;
	counter-increment: ft-h2;
}

/* So H2 trong o "goc cuon": bo 3 goc, goc phai tren vuong nhu trang lat */
.ft-main .ft-seo__inner h2::before {
	content: counter(ft-h2, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 16px 3px 16px 16px;
	background: var(--ft-gradient);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	box-shadow: 0 6px 14px rgba(242, 74, 85, .25);
}

.ft-main .ft-seo__inner h3 {
	margin: 28px 0 10px;
	padding-left: 14px;
	border-left: 4px solid var(--ft-gold-deep);
	font-size: clamp(18px, 2vw, 20px);
	line-height: 1.4;
}

.ft-main .ft-seo__inner ul,
.ft-main .ft-seo__inner ol {
	margin: 0 0 1em;
	padding-left: 24px;
}

.ft-seo__inner li + li {
	margin-top: 6px;
}

.ft-seo__inner li::marker {
	color: var(--ft-coral-deep);
	font-weight: 700;
}

.ft-seo__figure {
	max-width: 560px;
	margin: 28px auto 6px;
}

.ft-seo__img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--ft-border);
	border-radius: var(--ft-radius);
	box-shadow: var(--ft-shadow-sm);
}

/* ==========================================================================
   12. SUBPAGES
   ========================================================================== */
.ft-page-hero {
	padding: 40px 0 44px;
	background:
		radial-gradient(420px 260px at 90% 0%, rgba(250, 107, 107, .12), transparent 70%),
		linear-gradient(180deg, #FFF8F3 0%, #fff 100%);
	text-align: center;
}

.ft-breadcrumbs {
	margin-bottom: 14px;
}

.ft-main .ft-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	list-style: none;
	font-size: 14.5px;
}

.ft-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ft-muted);
}

.ft-breadcrumbs__item + .ft-breadcrumbs__item::before {
	content: "";
	width: 7px;
	height: 7px;
	margin-right: 4px;
	border-top: 2px solid var(--ft-muted);
	border-right: 2px solid var(--ft-muted);
	transform: rotate(45deg);
}

.ft-main .ft-breadcrumbs__link {
	color: var(--ft-primary-dark);
	font-weight: 600;
	text-decoration: none;
}

.ft-main .ft-breadcrumbs__link:hover {
	text-decoration: underline;
}

.ft-main h1.ft-page-hero__title {
	max-width: 30ch;
	margin: 0 auto;
	font-size: clamp(1.3rem, 4.6vw, 2rem);
	line-height: 1.3;
}

.ft-main .ft-page-hero__desc {
	max-width: 66ch;
	margin: 14px auto 0;
	font-size: 16.5px;
}

.ft-split {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: 48px;
	align-items: start;
}

.ft-prose {
	font-size: 16.5px;
	line-height: 1.75;
}

.ft-main .ft-prose .ft-section__title {
	margin-bottom: 16px;
}

.ft-main .ft-prose ul + .ft-section__title,
.ft-main .ft-prose p + .ft-section__title {
	margin-top: 32px;
}

.ft-main .ft-prose ul,
.ft-main .ft-prose ol {
	margin: 0 0 1em;
	padding-left: 22px;
}

.ft-prose li + li {
	margin-top: 6px;
}

.ft-prose li::marker {
	color: var(--ft-coral);
}

/* ---- The phap nhan ---- */
.ft-company {
	padding: 28px;
	border: 1px solid var(--ft-border);
	border-top: 5px solid var(--ft-coral);
	border-radius: var(--ft-radius-lg);
	background: #fff;
	box-shadow: var(--ft-shadow-md);
}

.ft-main .ft-company__kicker {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ft-coral-text);
}

.ft-main .ft-company__name {
	margin-bottom: 14px;
	font-size: 19px;
	line-height: 1.4;
}

.ft-main .ft-company__rows {
	margin: 0;
}

.ft-company__row {
	display: grid;
	grid-template-columns: 112px 1fr;
	gap: 10px;
	padding: 10px 0;
	border-top: 1px dashed var(--ft-border);
	font-size: 15px;
}

.ft-company__row dt {
	color: var(--ft-muted);
}

.ft-main .ft-company__row dd {
	margin: 0;
	font-weight: 600;
	color: var(--ft-ink);
	overflow-wrap: anywhere;
}

/* ---- Lien he ---- */
.ft-main .ft-contact {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	list-style: none;
}

.ft-contact__card {
	padding: 26px 22px;
	border: 1px solid var(--ft-border);
	border-radius: var(--ft-radius);
	background: #fff;
	box-shadow: var(--ft-shadow-sm);
}

.ft-contact__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 14px 4px 14px 14px;
	background: var(--ft-coral-soft);
	color: var(--ft-coral-text);
}

.ft-contact__icon .ft-icon {
	width: 24px;
	height: 24px;
}

.ft-main h2.ft-contact__title {
	margin: 16px 0 6px;
	font-size: 16px;
	color: var(--ft-muted);
}

.ft-main .ft-contact__value {
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 800;
	color: var(--ft-ink);
	overflow-wrap: anywhere;
}

.ft-main .ft-contact__value--sm {
	font-size: 15.5px;
	line-height: 1.5;
}

.ft-main .ft-contact__value a {
	color: var(--ft-primary);
	text-decoration: none;
}

.ft-main .ft-contact__desc {
	margin: 0;
	font-size: 14.5px;
	color: var(--ft-muted);
}

.ft-box {
	margin-top: 28px;
	padding: 24px 26px;
	border: 1px solid var(--ft-border);
	border-left: 5px solid var(--ft-gold-deep);
	border-radius: var(--ft-radius);
	background: #fff;
}

.ft-main h2.ft-box__title {
	margin-bottom: 10px;
	font-size: 19px;
}

.ft-box p:last-child {
	margin-bottom: 0;
}

/* ---- FAQ ---- */
.ft-faq-wrap {
	max-width: 880px;
}

.ft-faq-group + .ft-faq-group {
	margin-top: 40px;
}

.ft-main h2.ft-faq-group__title {
	margin-bottom: 14px;
	padding-left: 14px;
	border-left: 4px solid var(--ft-coral);
	font-size: 21px;
}

.ft-faq__item {
	border-bottom: 1px solid var(--ft-border);
}

.ft-main h3.ft-faq__q {
	font-size: inherit;
}

.ft-faq__btn,
.ft-faq__btn:focus,
.ft-faq__btn:hover {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 18px 2px;
	border: 0;
	background: transparent;
	color: var(--ft-ink);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.45;
	text-align: left;
	cursor: pointer;
}

.ft-faq__btn:hover {
	color: var(--ft-primary);
}

.ft-faq__icon {
	position: relative;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--ft-blush);
	flex: none;
}

.ft-faq__icon::before,
.ft-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	margin: -1px 0 0 -6px;
	border-radius: 2px;
	background: var(--ft-primary);
	transition: transform .2s ease;
}

.ft-faq__icon::after {
	transform: rotate(90deg);
}

.ft-faq__btn[aria-expanded="true"] .ft-faq__icon::after {
	transform: rotate(0deg);
}

.ft-faq__panel {
	padding: 0 48px 18px 2px;
	font-size: 16px;
}

.ft-faq__panel p:last-child {
	margin-bottom: 0;
}

/* ---- Van ban dai: muc luc + noi dung ---- */
.ft-doc {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 48px;
	align-items: start;
}

.ft-doc__toc {
	position: sticky;
	top: 24px;
	padding: 22px;
	border: 1px solid var(--ft-border);
	border-radius: var(--ft-radius);
	background: var(--ft-blush);
}

.ft-main .ft-doc__toc-title {
	margin: 0 0 10px;
	font-weight: 800;
	color: var(--ft-ink);
}

.ft-main .ft-doc__toc-list {
	padding-left: 20px;
	font-size: 14.5px;
}

.ft-doc__toc-list li + li {
	margin-top: 6px;
}

.ft-main .ft-doc__toc-list a {
	display: block;
	padding: 2px 0;
	color: var(--ft-text);
	text-decoration: none;
}

.ft-main .ft-doc__toc-list a:hover {
	color: var(--ft-primary);
	text-decoration: underline;
}

.ft-doc__body {
	max-width: 820px;
	min-width: 0;
	font-size: 16.5px;
	line-height: 1.75;
}

.ft-main .ft-doc__body h2 {
	margin: 36px 0 12px;
	padding-top: 24px;
	border-top: 1px solid var(--ft-border);
	font-size: clamp(19px, 2.3vw, 23px);
	scroll-margin-top: 20px;
}

.ft-main .ft-doc__body h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.ft-main .ft-doc__body ul {
	margin: 0 0 1em;
	padding-left: 22px;
}

.ft-doc__body li + li {
	margin-top: 6px;
}

.ft-doc__body li::marker {
	color: var(--ft-coral);
}

/* ---- CTA band ---- */
.ft-section--cta {
	padding: 24px 0 88px;
}

.ft-cta {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 44px 48px;
	border-radius: var(--ft-radius-lg);
	background: var(--ft-gradient);
	overflow: hidden;
}

/* Dai lua cong mo trong band (pseudo, khong xoay) */
.ft-cta::before {
	content: "";
	position: absolute;
	right: 160px;
	bottom: -150px;
	width: 320px;
	height: 220px;
	border: 26px solid rgba(255, 255, 255, .16);
	border-bottom-color: transparent;
	border-right-color: transparent;
	border-radius: 50%;
	box-sizing: border-box;
	pointer-events: none;
}

.ft-cta__body {
	position: relative;
}

.ft-main h2.ft-cta__title {
	font-size: clamp(20px, 2.6vw, 26px);
	color: #fff;
}

.ft-main .ft-cta__desc {
	margin: 8px 0 0;
	color: #fff;
}

.ft-cta .ft-btn {
	position: relative;
	flex: none;
}

/* ---- 404 ---- */
.ft-404 {
	padding: 88px 0 104px;
	text-align: center;
}

.ft-main .ft-404__code {
	margin: 0 0 30px;
	font-size: clamp(92px, 20vw, 196px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: .01em;
	color: var(--ft-ink);
	font-variant-numeric: tabular-nums;
}

@supports ((-webkit-text-stroke: 1px currentColor) and (paint-order: stroke)) {
	.ft-main .ft-404__code {
		color: var(--ft-coral);
		-webkit-text-stroke: .055em var(--ft-ink);
		paint-order: stroke fill;
		text-shadow: .035em .045em 0 rgba(255, 210, 63, .7);
	}
}

.ft-main h1.ft-404__title {
	max-width: 56ch;
	margin: 0 auto 30px;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--ft-text);
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.ft-footer {
	position: relative;
	padding: 64px 0 28px;
	background: var(--ft-footer);
	color: #CFCBE0;
	overflow: hidden;
}

/* Dai lua san ho mo (motif chu F), pseudo-element nam trong footer */
.ft-footer::before {
	content: "";
	position: absolute;
	right: -60px;
	top: -120px;
	width: 380px;
	height: 300px;
	border: 30px solid rgba(250, 107, 107, .12);
	border-right-color: transparent;
	border-top-color: transparent;
	border-radius: 50%;
	box-sizing: border-box;
	pointer-events: none;
}

.ft-footer a {
	color: #fff;
	text-decoration: none;
}

.ft-footer a:hover {
	color: var(--ft-coral-light);
}

.ft-footer__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
	gap: 36px;
}

.ft-footer__logo-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.ft-footer__chip {
	display: flex;
	padding: 4px;
	border-radius: 12px;
	background: #fff;
}

.ft-footer__logo {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.ft-footer__sitename {
	font-size: 22px;
	font-weight: 800;
	color: #fff;
}

.ft-footer__desc {
	margin: 16px 0 10px;
	font-size: 15px;
	line-height: 1.65;
}

.ft-footer__email {
	margin: 0;
	font-size: 15px;
}

.ft-footer__title {
	margin: 4px 0 14px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .02em;
	color: var(--ft-gold);
}

.ft-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
}

.ft-footer__links li + li {
	margin-top: 10px;
}

.ft-footer__hotline {
	display: inline-block;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: .01em;
}

.ft-footer__hours {
	margin: 6px 0 0;
	font-size: 14.5px;
}

.ft-footer__bottom {
	position: relative;
	margin-top: 44px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

.ft-footer__legal {
	margin: 0 0 4px;
}

.ft-footer__legal strong {
	color: #fff;
}

.ft-footer__copy {
	margin: 10px 0 0;
	color: #A29EB8;
}

/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
	.ft-hero {
		padding: 40px 0 86px;
	}

	.ft-hero__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.ft-hero__visual {
		display: contents;
	}

	.ft-main h1.ft-hero__title {
		order: 1;
	}

	.ft-hero__desc {
		order: 2;
		max-width: none;
	}

	.ft-hero__content {
		order: 3;
		justify-content: center;
		margin-top: 26px;
	}

	.ft-hero__art {
		order: 4;
		width: 100%;
		margin: 28px auto 0;
	}

	.ft-calc {
		max-width: none;
	}

	.ft-day,
	.ft-detail,
	.ft-split {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.ft-chat {
		width: 100%;
		max-width: 640px;
		margin: 0 auto;
	}

	.ft-main .ft-steps {
		grid-template-columns: repeat(2, 1fr);
	}

	.ft-main .ft-pros {
		grid-template-columns: repeat(2, 1fr);
	}

	.ft-pros__item,
	.ft-pros__item:nth-child(4) {
		grid-column: auto;
	}

	.ft-pros__item:last-child {
		grid-column: 1 / -1;
	}

	.ft-main .ft-cond {
		grid-template-columns: repeat(3, 1fr);
	}

	.ft-main .ft-contact {
		grid-template-columns: repeat(2, 1fr);
	}

	.ft-doc {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.ft-doc__toc {
		position: static;
	}

	.ft-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.ft-container {
		padding: 0 16px;
	}

	/* Header + menu mobile (panel truot phai, co nut Dong rieng) */
	.ft-header__inner {
		min-height: 66px;
		gap: 12px;
	}

	.ft-header__logo {
		width: 40px;
		height: 40px;
	}

	.ft-header__sitename {
		font-size: 20px;
	}

	.ft-header__cta {
		display: none;
	}

	.ft-header__actions {
		margin-left: auto;
	}

	.ft-header__toggle,
	.ft-header__toggle:hover,
	.ft-header__toggle:focus {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 46px;
		height: 46px;
		padding: 0;
		border: 1.5px solid var(--ft-border);
		border-radius: 14px;
		background: #fff;
		cursor: pointer;
	}

	.ft-header__toggle-bar,
	.ft-header__toggle-bar::before,
	.ft-header__toggle-bar::after {
		display: block;
		width: 20px;
		height: 2.4px;
		border-radius: 2px;
		background: var(--ft-ink);
	}

	.ft-header__toggle-bar {
		position: relative;
	}

	.ft-header__toggle-bar::before,
	.ft-header__toggle-bar::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.ft-header__toggle-bar::before {
		top: -6.5px;
		width: 14px;
		background: var(--ft-coral);
	}

	.ft-header__toggle-bar::after {
		top: 6.5px;
	}

	.ft-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		display: flex;
		flex-direction: column;
		width: min(320px, 86vw);
		padding: 16px 20px 28px;
		background: #fff;
		box-shadow: var(--ft-shadow-lg);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .3s ease, visibility .3s;
		overflow-y: auto;
		box-sizing: border-box;
	}

	.ft-nav.is-open {
		transform: none;
		visibility: visible;
	}

	.ft-nav__head {
		display: flex;
		justify-content: flex-end;
		margin-bottom: 12px;
	}

	.ft-nav__close,
	.ft-nav__close:hover,
	.ft-nav__close:focus {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 8px 14px;
		border: 1.5px solid var(--ft-border);
		border-radius: 999px;
		background: #fff;
		color: var(--ft-ink);
		font-size: 15px;
		font-weight: 700;
		line-height: 1.4;
		cursor: pointer;
	}

	.ft-nav__close-icon {
		position: relative;
		width: 14px;
		height: 14px;
	}

	.ft-nav__close-icon::before,
	.ft-nav__close-icon::after {
		content: "";
		position: absolute;
		top: 6px;
		left: -1px;
		width: 16px;
		height: 2.2px;
		border-radius: 2px;
		background: var(--ft-primary);
		transform: rotate(45deg);
	}

	.ft-nav__close-icon::after {
		transform: rotate(-45deg);
	}

	.ft-nav__list {
		flex-direction: column;
		gap: 4px;
	}

	.ft-nav__link,
	.ft-nav__link:visited {
		padding: 14px 16px;
		border-radius: 14px;
		font-size: 17px;
	}

	.ft-nav__link--active,
	.ft-nav__link--active:visited {
		background: var(--ft-blush);
	}

	.ft-nav__link--active::after {
		left: auto;
		right: 18px;
		bottom: 50%;
		margin: 0 0 -3px;
	}

	.ft-nav__cta {
		display: inline-flex;
		margin-top: 18px;
	}

	/* Hero */
	.ft-hero__art {
		display: none;
	}

	.ft-calc {
		padding: 22px 18px;
	}

	.ft-calc__amount {
		font-size: 24px;
	}

	.ft-main .ft-stats {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 14px;
	}

	.ft-section {
		padding: 56px 0;
	}

	.ft-section--flush-top {
		padding-top: 32px;
	}

	.ft-section__head {
		margin-bottom: 28px;
	}

	/* Khung chat */
	.ft-chat__head {
		padding: 12px 14px;
	}

	.ft-main .ft-chat__list {
		padding: 18px 12px 20px;
	}

	.ft-chat__bubble {
		max-width: 88%;
	}

	.ft-main .ft-chat__amount {
		font-size: 24px;
	}

	.ft-main .ft-chat__caption {
		padding: 10px 14px 14px;
	}

	.ft-day__fact dd strong {
		font-size: 21px;
	}

	/* Quy trinh: dai lua nam ben trai */
	.ft-main .ft-steps {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.ft-steps__item {
		flex-direction: row;
	}

	.ft-steps__ribbon {
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 12px;
		width: 78px;
		height: auto;
		padding: 18px 0 18px;
		flex: none;
	}

	.ft-steps__ribbon::after {
		left: auto;
		right: -40px;
		top: -10%;
		bottom: -30%;
		width: 56px;
		height: auto;
		border-radius: 100% 0 0 100% / 50% 0 0 50%;
	}

	.ft-steps__ribbon .ft-icon {
		width: 24px;
		height: 24px;
	}

	.ft-steps__num {
		width: 40px;
		height: 40px;
		font-size: 15px;
	}

	.ft-steps__body {
		padding: 18px 16px 18px 6px;
	}

	.ft-main .ft-steps__title {
		font-size: 17px;
	}

	/* Chi tiet khoan vay */
	.ft-spec {
		padding: 22px 18px;
	}

	.ft-spec__row {
		font-size: 15px;
	}

	.ft-example {
		padding: 24px 18px;
	}

	.ft-main .ft-example__case {
		font-size: 30px;
	}

	.ft-example__row {
		grid-template-columns: 68px 1fr;
		column-gap: 10px;
	}

	.ft-main .ft-risk__list {
		grid-template-columns: 1fr;
	}

	.ft-risk {
		padding: 20px 18px;
	}

	/* Uu diem */
	.ft-main .ft-pros {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.ft-pros__item,
	.ft-pros__item:nth-child(n) {
		display: grid;
		grid-template-columns: 50px 1fr;
		column-gap: 14px;
		align-items: center;
		grid-column: auto;
		padding: 18px;
	}

	.ft-pros__coin {
		width: 48px;
		height: 48px;
		margin: 0;
		font-size: 19px;
	}

	.ft-main .ft-pros__title {
		margin: 0;
		font-size: 17px;
	}

	.ft-main .ft-pros__desc {
		grid-column: 1 / -1;
		margin-top: 10px;
	}

	/* Dieu kien */
	.ft-main .ft-cond {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.ft-cond__item {
		padding: 20px 16px 18px;
	}

	.ft-cond__item:last-child {
		grid-column: 1 / -1;
	}

	.ft-main .ft-cond__value {
		font-size: 22px;
	}

	/* SEO */
	.ft-seo {
		padding: 56px 0 64px;
	}

	.ft-seo__inner {
		font-size: 16px;
	}

	.ft-main .ft-seo__sapo {
		padding-left: 16px;
	}

	.ft-main .ft-seo__inner h2 {
		padding: 22px 0 0;
	}

	.ft-main .ft-seo__inner h2::before {
		position: static;
		margin-bottom: 12px;
		width: 42px;
		height: 42px;
		font-size: 16px;
	}

	/* Trang con */
	.ft-main .ft-contact {
		grid-template-columns: 1fr;
	}

	.ft-cta {
		flex-direction: column;
		align-items: flex-start;
		padding: 32px 22px;
	}

	.ft-cta::before {
		right: -60px;
	}

	.ft-company {
		padding: 22px 18px;
	}

	.ft-company__row {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.ft-faq__panel {
		padding-right: 8px;
	}

	.ft-404 {
		padding: 56px 0 72px;
	}

	.ft-main h1.ft-404__title {
		font-size: 17.5px;
	}

	.ft-footer {
		padding-top: 48px;
	}

	/* Footer mobile: cot "FlashTai" va "Chinh sach" nam ngang nhau */
	.ft-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 26px 20px;
	}

	.ft-footer__col--brand,
	.ft-footer__col--call {
		grid-column: 1 / -1;
	}

	.ft-footer::before {
		right: -120px;
		width: 300px;
		height: 240px;
		border-width: 22px;
	}
}

@media (max-width: 480px) {
	.ft-chat__tag {
		display: none;
	}

	.ft-day__fact {
		grid-template-columns: 1fr;
	}

	.ft-main .ft-day__fact dd {
		align-items: flex-start;
		text-align: left;
	}

	.ft-main .ft-cond__value {
		font-size: 20px;
	}
}

/* ==========================================================================
   15. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
