.preview {
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
}

.preview img {
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
	-o-object-position: center;
	object-position: center;
}

:root {
	--donut-landing-main-font: "Baloo 2", "Rubik", sans-serif;
	--donut-landing-second-font: "Rubik", sans-serif;
	--font-body-site: 'Manrope', 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	--font-heading-site: 'Plus Jakarta Sans', 'Manrope', sans-serif;
	--header-offset: var(--height-header, 96px);

	/* Default Theme Variables */
	--donut-landing-main-color: #e59850;
	--donut-landing-second-color: #45332a;
	--theme-hero-bg: #cb6d38;
	--theme-hero-title-color: #ffd6a5;
	--theme-special-color: #ff718d;

	/* Subheader Box Nav */
	--theme-nav-border: rgba(213, 168, 100, 0.4);
	--theme-nav-shadow: rgba(45, 25, 15, 0.22);
	--theme-nav-toggle-bg: linear-gradient(135deg, rgba(235, 185, 130, 0.3), rgba(213, 168, 100, 0.15));
	--theme-nav-toggle-border: rgba(213, 168, 100, 0.25);
	--theme-nav-toggle-hover: linear-gradient(135deg, rgba(235, 185, 130, 0.45), rgba(213, 168, 100, 0.25));
	--theme-nav-title-color: #3b2418;
	--theme-nav-arrow-color: #8c6239;
	--theme-nav-link-color: #5c3c28;
	--theme-nav-link-hover-bg: rgba(229, 152, 80, 0.15);
	--theme-nav-link-hover-color: #2b1810;

	/* Step Cards */
	--theme-card1-bg: #c5c994;
	--theme-card2-bg: #f3ebd8;
	--theme-card3-bg: #ddc0dc;
	--theme-card4-bg: #ecdac7;

	--theme-card1-special: #4a6e18;
	--theme-card2-special: #2b8b98;
	--theme-card3-special: #b59200;
	--theme-card4-special: #d9480a;

	--theme-card-heading-color: var(--donut-landing-second-color);
	--theme-card-text-color: var(--donut-landing-second-color);

	/* Step Indicators */
	--theme-ind1-color: #3f5d13;
	--theme-ind2-color: #2b8b98;
	--theme-ind3-color: #6a3e72;
	--theme-ind4-color: #d9480a;

	/* Final Section */
	--theme-final-bg-text-font: "Caveat", "Comforter", cursive, sans-serif;
	--theme-next-btn-bg: rgba(82, 183, 136, 0.2);
	--theme-next-btn-border: #52b788;
	--theme-next-btn-hover-bg: #52b788;
	--theme-next-btn-hover-shadow: rgba(82, 183, 136, 0.4);
}

/* ==========================================================================
   Shared Header & Footer Typography (Exact match with Caraflow site pages)
   ========================================================================== */
#header-placeholder,
.header,
.navbar,
.navbar *,
.navigation-title,
.nav-link,
.dropdown-toggle,
.dropdown-header,
#footer-placeholder,
.site-footer,
.site-footer *,
.footer-container,
.footer-container * {
	font-family: var(--font-body-site) !important;
}

.footer-heading {
	font-family: var(--font-heading-site), var(--font-body-site) !important;
}

/* Header container - match trang-chu.html exactly (1140px) */
header.header .container,
.header .container {
	width: 100% !important;
	max-width: 1140px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
	box-sizing: border-box !important;
	height: auto !important;
}

/* Ensure links inside header have proper site colors and avoid dark theme text color conflicts */
header.header a,
.header a {
	color: inherit;
}

header.header .navbar-brand {
	color: var(--color-2, #000000);
}

header.header .dropdown-header a {
	color: var(--color-4, #555555);
}

header.header .dropdown-header a:hover {
	color: var(--color-1, #d5a864);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
	margin: 0;
	padding: 0;
}

ul,
ol {
	list-style: none;
}

* {
	box-sizing: border-box;
}

a {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	text-decoration: none;
	color: white;
}

html {
	overflow-x: hidden;
	overflow-y: auto;
}

body {
	margin: 0;
	height: auto;
	background-color: #000000;
	font-family: var(--donut-landing-main-font), sans-serif;
	overflow-x: hidden;
	overflow-y: visible;
}

body.menu-open {
	overflow: hidden;
}

body.menu-open .header {
	transform: none !important;
}

.container {
	max-width: 1300px;
	padding: 0 20px;
	width: 100%;
	height: 100%;
	margin: 0 auto;
}



/* Header */
/* ==========================================================================
   Boutique Cookie Box Nav ("Hộp Vị Bánh" thông minh, không che chữ)
   ========================================================================== */

.cookie-box-nav {
	position: fixed;
	left: 20px;
	top: calc(var(--header-offset) + 16px);
	z-index: 990;
	display: flex;
	flex-direction: column;
	background: rgba(241, 245, 249, 0.94);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1.5px solid rgba(56, 189, 248, 0.35);
	border-radius: 20px;
	box-shadow: 0 12px 36px rgba(15, 23, 42, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
	overflow: hidden;
	transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	width: 175px;
	max-width: calc(100vw - 40px);
}

.cookie-box-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 14px;
	width: 100%;
	background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(148, 163, 184, 0.15));
	border: none;
	border-bottom: 1px solid rgba(56, 189, 248, 0.2);
	cursor: pointer;
	outline: none;
	font-family: "Baloo 2", sans-serif;
	text-align: left;
	transition: background 0.2s ease;
}

.cookie-box-toggle:hover {
	background: var(--theme-nav-toggle-hover);
}

.cookie-box-icon {
	font-size: 1.15rem;
	line-height: 1;
	flex-shrink: 0;
}

.cookie-box-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 700;
	font-size: 0.9rem;
	color: #0f172a;
	letter-spacing: 0.3px;
	white-space: nowrap;
	flex-grow: 1;
}

.cookie-box-arrow {
	font-size: 0.9rem;
	color: var(--theme-nav-arrow-color);
	transition: transform 0.3s ease;
	line-height: 1;
}

.cookie-box-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px 10px 12px;
	margin: 0;
	list-style: none;
	transition: all 0.3s ease;
}

.cookie-box-item {
	position: relative;
	display: flex;
	align-items: center;
}

.cookie-box-link {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 6px 10px;
	border-radius: 12px;
	color: #334155;
	text-decoration: none;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.2px;
	transition: all 0.2s ease;
}

.nav-label {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 600;
	letter-spacing: 0.2px;
}

.cookie-box-link:hover,
.cookie-box-link.active {
	background: var(--theme-nav-link-hover-bg);
	color: var(--theme-nav-link-hover-color);
	font-weight: 600;
}

.cookie-box-link .nav-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--dot-color, #e59850);
	opacity: 0.45;
	transition: all 0.25s ease;
	flex-shrink: 0;
}

.cookie-box-link:hover .nav-dot,
.cookie-box-link.active .nav-dot {
	opacity: 1;
	transform: scale(1.4);
	box-shadow: 0 0 8px var(--dot-color, #e59850);
}

/* Collapsed state (Siêu gọn gàng, hoàn toàn không che bất kỳ chữ nào) */
.cookie-box-nav.is-collapsed {
	width: 46px;
	border-radius: 23px;
	background: rgba(254, 250, 243, 0.9);
}

.cookie-box-nav.is-collapsed .cookie-box-title,
.cookie-box-nav.is-collapsed .cookie-box-arrow,
.cookie-box-nav.is-collapsed .nav-label {
	display: none;
}

.cookie-box-nav.is-collapsed .cookie-box-toggle {
	padding: 10px 0;
	justify-content: center;
	border-bottom: none;
}

.cookie-box-nav.is-collapsed .cookie-box-list {
	padding: 4px 0 10px;
	align-items: center;
}

.cookie-box-nav.is-collapsed .cookie-box-link {
	padding: 6px 0;
	justify-content: center;
	width: 32px;
	height: 32px;
}

/* Hover mở rộng tức thì khi đang collapsed */
.cookie-box-nav.is-collapsed:hover {
	width: 175px;
	border-radius: 20px;
	background: rgba(254, 250, 243, 0.98);
}

.cookie-box-nav.is-collapsed:hover .cookie-box-title,
.cookie-box-nav.is-collapsed:hover .cookie-box-arrow,
.cookie-box-nav.is-collapsed:hover .nav-label {
	display: inline-block;
}

.cookie-box-nav.is-collapsed:hover .cookie-box-toggle {
	padding: 10px 14px;
	justify-content: space-between;
	border-bottom: 1px solid rgba(213, 168, 100, 0.25);
}

.cookie-box-nav.is-collapsed:hover .cookie-box-list {
	padding: 10px 10px 12px;
	align-items: stretch;
}

.cookie-box-nav.is-collapsed:hover .cookie-box-link {
	padding: 6px 10px;
	justify-content: flex-start;
	width: 100%;
	height: auto;
}

.link-animation {
	position: relative;
	display: inline-block;
	text-decoration: none;
	width: -webkit-max-content;
	width: -moz-max-content;
	width: max-content;
}

.link-animation::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	height: 1px;
	width: 100%;
	transform: scaleX(0);
	transform-origin: right;
	background-color: #f3ebd8;
	transition: transform 0.5s ease;
}

.link-animation:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.primary__btn,
.header__btn,
.hero__btn,
.final__btn {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 15px 40px;
	outline: none;
	border: none;
	border-radius: 40px;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.3px;
	line-height: 1.4;
	color: #0284c7;
	background-color: white;
	cursor: pointer;
	transition: 0.25s color, 0.25s background-color;
}

.primary__btn:hover {
	background-color: var(--theme-second-color);
	color: white;
}



.main {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0 auto;
	padding-top: var(--header-offset);
	overflow: hidden;
}

.main__figure {
	position: absolute;
	z-index: -1;
	top: 45%;
	left: 50%;
	height: 100%;
	opacity: 0.5;
	transform: translate(-50%, -50%);
}

.model {
	position: fixed;
	width: 100vw;
	height: calc(100vh - var(--header-offset));
	top: var(--header-offset);
	left: 0;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	pointer-events: none;
	perspective: 1200px;
}

.model-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	position: relative;
	transform-style: preserve-3d;
}

.donut-figure {
	position: relative;
	width: 240px;
	height: 240px;
	display: flex;
	align-items: center;
	justify-content: center;
	transform-style: preserve-3d;
	will-change: transform;
}

.cookie-rotator {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	transform-style: preserve-3d;
	will-change: transform;
}

.donut-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
	transform: rotate(0deg);
	filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
	transition: filter 0.5s ease;
}

.donut-shadow {
	position: absolute;
	bottom: -22px;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	height: 28px;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 45%, transparent 75%);
	border-radius: 50%;
	pointer-events: none;
	filter: blur(10px);
	opacity: 0.85;
	z-index: -1;
}

/* ==========================================================================
   Riverbed Water Effects (Hiệu Ứng Sóng Nước & Bọt Khí Dưới Lòng Sông)
   ========================================================================== */

.pebble-water-ripples {
	position: absolute;
	bottom: -15px;
	left: 50%;
	transform: translateX(-50%) rotateX(68deg);
	width: 280px;
	height: 160px;
	pointer-events: none;
	z-index: 1;
	transform-style: preserve-3d;
}

.water-ripple {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	border: 1.8px solid rgba(56, 189, 248, 0.65);
	box-shadow: 0 0 14px rgba(56, 189, 248, 0.4), inset 0 0 10px rgba(56, 189, 248, 0.25);
	pointer-events: none;
	animation: ripple-pulse 3.8s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.water-ripple.r1 {
	animation-delay: 0s;
}

.water-ripple.r2 {
	animation-delay: 1.25s;
}

.water-ripple.r3 {
	animation-delay: 2.5s;
}

@keyframes ripple-pulse {
	0% {
		width: 30px;
		height: 18px;
		opacity: 0.95;
		border-color: rgba(224, 242, 254, 0.9);
	}
	45% {
		opacity: 0.65;
		border-color: rgba(56, 189, 248, 0.6);
	}
	100% {
		width: 280px;
		height: 160px;
		opacity: 0;
		border-color: rgba(14, 165, 233, 0);
	}
}

.pebble-bubbles {
	position: absolute;
	inset: -30px;
	pointer-events: none;
	z-index: 25;
}

.water-bubble {
	position: absolute;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9) 0%, rgba(56, 189, 248, 0.45) 45%, rgba(255, 255, 255, 0.15) 75%, transparent 100%);
	border: 1px solid rgba(255, 255, 255, 0.7);
	box-shadow: 0 0 8px rgba(56, 189, 248, 0.55);
	opacity: 0;
	pointer-events: none;
	animation: bubble-rise 4.2s ease-in-out infinite;
}

.water-bubble.b1 {
	width: 9px;
	height: 9px;
	left: 22%;
	bottom: 12px;
	animation-duration: 3.6s;
	animation-delay: 0.2s;
}

.water-bubble.b2 {
	width: 14px;
	height: 14px;
	right: 25%;
	bottom: 8px;
	animation-duration: 4.3s;
	animation-delay: 1.4s;
}

.water-bubble.b3 {
	width: 7px;
	height: 7px;
	left: 42%;
	bottom: 5px;
	animation-duration: 3.2s;
	animation-delay: 2.2s;
}

.water-bubble.b4 {
	width: 11px;
	height: 11px;
	right: 35%;
	bottom: 16px;
	animation-duration: 4.7s;
	animation-delay: 3.0s;
}

@keyframes bubble-rise {
	0% {
		opacity: 0;
		transform: translateY(0) translateX(0) scale(0.6);
	}
	20% {
		opacity: 0.85;
	}
	50% {
		transform: translateY(-70px) translateX(10px) scale(1);
	}
	80% {
		opacity: 0.65;
	}
	100% {
		opacity: 0;
		transform: translateY(-150px) translateX(-6px) scale(1.15);
	}
}

.pebble-water-sheen {
	position: absolute;
	inset: 12px;
	border-radius: 50% 48% 52% 46% / 46% 52% 48% 54%;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(56, 189, 248, 0.15) 35%, transparent 65%);
	pointer-events: none;
	mix-blend-mode: screen;
	animation: water-sheen-shimmer 4s ease-in-out infinite alternate;
}

@keyframes water-sheen-shimmer {
	0% {
		opacity: 0.35;
		transform: scale(0.97) rotate(-2deg);
	}
	100% {
		opacity: 0.75;
		transform: scale(1.02) rotate(2deg);
	}
}


/* Hero Section */

.hero {
	position: relative;
	overflow: hidden;
	height: calc(100dvh - var(--header-offset)) !important;
	min-height: calc(640px - var(--header-offset));
	border-radius: 0 0 40px 40px;
	background-color: var(--theme-hero-bg);
}

.hero .container {
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero__top {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.hero__heading-box {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	width: 100%;
	max-width: 1000px;
	padding: 0 20px;
	margin: 0 auto;
}

.hero__script-badge {
	display: inline-block;
	font-family: "Charm", "FleurDeLeah", cursive;
	font-size: clamp(2rem, 3.2vw, 2.9rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--theme-hero-title-color);
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
	margin-bottom: clamp(10px, 2.5vh, 22px);
	transform: rotate(-3deg);
	letter-spacing: 0.5px;
	pointer-events: none;
	user-select: none;
}

.hero__heading {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	margin: 0 auto;
	font-family: "Baloo 2", sans-serif;
	font-size: clamp(3.6rem, 9.5vw, 8.5rem);
	font-weight: 800;
	line-height: 1;
	color: #ffffff;
	text-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
	user-select: none;
	pointer-events: none;
	letter-spacing: -1px;
}

.hero__word {
	display: inline-flex;
	align-items: center;
}

.hero__cookie-slot {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 0.76em;
	height: 0.76em;
	margin: 0 0.04em;
	vertical-align: middle;
}


.hero__cookie-slot--q,
.hero__leaf-slot,
.hero__pebble-slot {
	width: 0.86em;
	height: 0.82em;
	margin: 0 0.04em;
	vertical-align: -0.02em;
}

.hero__cookie-slot--q {
	width: 0.78em;
	height: 0.78em;
	margin: 0 0.05em 0 0.02em;
	vertical-align: -0.01em;
}

.hero__leaf-slot {
	width: 0.78em;
	height: 0.88em;
	margin: 0 0.05em;
	vertical-align: -0.01em;
}

.hero__q-tail {
	position: absolute;
	right: -0.24em;
	bottom: -0.06em;
	width: 0.54em;
	height: 0.48em;
	pointer-events: none;
	z-index: 25;
	transform-origin: 20% 20%;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero__q-tail-svg {
	width: 100%;
	height: 100%;
	display: block;
}

.hero__accent {
	position: absolute;
	top: -0.22em;
	left: 54%;
	transform: translateX(-50%) rotate(-32deg);
	width: 0.28em;
	height: 0.11em;
	background-color: #ffffff;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 30;
}

.hero__hook-mark {
	position: absolute;
	top: -0.16em;
	left: 50%;
	transform: translateX(-50%);
	width: 0.32em;
	height: 0.32em;
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 30;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.hero__hook-svg {
	width: 100%;
	height: 100%;
	display: block;
}


.hero__second-text {
	text-align: center;
	margin: 25px auto 0;
	max-width: 680px;
	font-family: "Rubik", sans-serif;
	font-size: clamp(0.95rem, 1.2vw, 1.2rem);
	line-height: 1.6;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	position: relative;
	z-index: 30;
}

.hero__btn {
	margin: 24px 0 0;
	position: relative;
	z-index: 30;
}

.hero__pointer {
	position: absolute;
	z-index: 40;
	left: clamp(24px, 4vw, 55px);
	bottom: 25px;
	transform: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.hero__pointer img,
.hero__pointer .hero__mouse-icon,
.hero__pointer .hero__arrow {
	filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) !important;
	opacity: 0.95 !important;
	transition: all 0.25s ease;
}

.hero__pointer:hover img,
.hero__pointer:hover .hero__mouse-icon,
.hero__pointer:hover .hero__arrow {
	opacity: 1 !important;
	filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)) !important;
}

.hero__mouse-icon {
	height: 24px;
}

@-webkit-keyframes arrow-move {
	0% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}

	100% {
		transform: translateY(0);
	}
}

@keyframes arrow-move {
	0% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}

	100% {
		transform: translateY(0);
	}
}

.hero__arrow {
	transition: transform 0.35s ease-in-out;
	-webkit-animation: arrow-move 1s infinite linear;
	animation: arrow-move 1s infinite linear;
}

.heading-box {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: clamp(10px, 5vw, 30px);
	max-width: 950px;
	text-align: center;
}

.heading-box .second-heading,
.second-heading {
	opacity: 0;
	font-family: var(--donut-landing-main-font), sans-serif;
	font-size: clamp(1.5rem, 5vw, 42px);
	line-height: 1.25;
	font-weight: 700;
	text-transform: uppercase;
	color: white;
	transform: translateY(-20px);
}

.heading__special {
	color: var(--theme-special-color);
}

/* Transition Section */

#transition {
	display: none;
	height: 0;
	margin: 0;
	padding: 0;
}

/* Flip Section */

.flip {
	position: relative;
	z-index: 1;
	padding: var(--header-offset) 0 40px;
	height: 100dvh;
	margin: 0;
	overflow: hidden;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}

.flip .container {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	height: 100%;
	position: relative;
	z-index: 2;
}

.flip__figures {
	position: fixed;
	top: calc(var(--header-offset) + (100vh - var(--header-offset)) * 0.58);
	left: 0;
	transform: translateY(-50%);
	width: 100%;
	height: 658px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 0;
	transition: 0.2s opacity, 0.2s visibility;
}

.flip__figures.hidden {
	opacity: 0;
	visibility: hidden;
}

.flip__first-figure,
.flip__second-figure,
.flip__third-figure {
	position: absolute;
	opacity: 1;
}

.flip__first-figure {
	left: -21%;
}

.flip__second-figure {
	left: 50%;
	transform: translate(-50%, 0%);
}

.flip__third-figure {
	right: -21%;
}

.flip__heading-box {
	margin-top: clamp(24px, 5vh, 60px);
	max-width: 960px;
	text-align: center;
}

.heading-box .flip__heading {
	font-size: clamp(1.5rem, 3vw, 42px);
}

.flip__text {
	max-width: 810px;
	opacity: 0;
	font-family: "Rubik", sans-serif;
	font-size: clamp(1rem, 1.5vw, 1.25rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
	transform: translateY(-20px);
}

.flip__shadow {
	position: absolute;
	z-index: -1;
	bottom: 20%;
	opacity: 0;
	width: 480px;
	height: 360px;
	border-radius: 100%;
	background-color: rgba(83, 68, 73, 0.3);
	filter: blur(40px);
	perspective: 1000px;
	transition: 0.3s all;
}

/* Steps Section */

#steps {
	position: relative;
	overflow: hidden;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100dvh;
	width: 100%;
	margin: 0;
	padding-top: var(--header-offset);
	box-sizing: border-box;
}

.steps__indicators {
	position: absolute;
	bottom: 35px;
	left: 50%;
	z-index: 100;
	display: flex;
	gap: 15px;
	transform: translateX(-50%);
	pointer-events: auto;
}

.steps__indicator {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid #ffffff !important;
	background-color: rgba(255, 255, 255, 0.2) !important;
	opacity: 0.75 !important;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
	transition: all 0.3s ease;
	cursor: pointer;
}

.steps__indicator:hover {
	opacity: 1 !important;
	border-color: #ffffff !important;
	background-color: rgba(255, 255, 255, 0.5) !important;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
	transform: scale(1.25);
}

.steps__indicator.active {
	opacity: 1;
	transform: scale(1.3);
}

.steps__indicator:nth-child(1).active {
	background-color: var(--theme-ind1-color);
	border-color: var(--theme-ind1-color);
	box-shadow: 0 0 12px var(--theme-ind1-color);
}

.steps__indicator:nth-child(2).active {
	background-color: var(--theme-ind2-color);
	border-color: var(--theme-ind2-color);
	box-shadow: 0 0 12px var(--theme-ind2-color);
}

.steps__indicator:nth-child(3).active {
	background-color: var(--theme-ind3-color);
	border-color: var(--theme-ind3-color);
	box-shadow: 0 0 12px var(--theme-ind3-color);
}

.steps__indicator:nth-child(4).active {
	background-color: var(--theme-ind4-color);
	border-color: var(--theme-ind4-color);
	box-shadow: 0 0 12px var(--theme-ind4-color);
}

.steps__cards {
	position: relative;
	width: 100%;
	height: calc(100dvh - var(--header-offset) - 20px);
	border-radius: 40px;
	overflow: hidden;
}

.steps__card,
.steps__card-first {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 clamp(20px, 4vw, 50px);
	box-sizing: border-box;
	will-change: transform;
}

.steps__card-first {
	z-index: 1;
	background-color: var(--theme-card1-bg);
}

.steps__card:nth-child(2) {
	z-index: 2;
	background-color: var(--theme-card2-bg);
	transform: translateY(100vh);
}

.steps__card:nth-child(3) {
	z-index: 3;
	background-color: var(--theme-card3-bg);
	transform: translateY(100vh);
}

.steps__card:nth-child(4) {
	z-index: 4;
	background-color: var(--theme-card4-bg);
	transform: translateY(100vh);
}

.steps__card-heading {
	position: relative;
	vertical-align: middle;
	margin-left: clamp(80px, 9vw, 130px);
	max-width: 360px;
	font-family: var(--donut-landing-main-font), sans-serif;
	font-size: clamp(32px, 3.8vw, 48px);
	font-weight: 700;
	line-height: 1.15;
	color: var(--theme-card-heading-color);
}

.steps__card-heading-special {
	position: absolute;
	top: 100%;
	left: 0;
	font-family: "Charm", "Playfair Display", cursive, serif;
	font-size: clamp(48px, 5.5vw, 76px);
	font-weight: 700;
	font-style: italic;
	line-height: 1;
	white-space: nowrap;
}

.steps__card-heading.white,
.steps__card-text-heading.white,
.steps__card-text.white {
	color: white !important;
}

.steps__card-first .steps__card-heading-special {
	color: var(--theme-card1-special);
}

.steps__card:nth-child(2) .steps__card-heading-special {
	color: var(--theme-card2-special);
}

.steps__card:nth-child(3) .steps__card-heading-special {
	color: var(--theme-card3-special);
}

.steps__card:nth-child(4) .steps__card-heading-special {
	color: var(--theme-card4-special);
}

.steps__card-text-block {
	display: flex;
	flex-direction: column;
	margin-right: clamp(30px, 5vw, 80px);
	max-width: 360px;
	vertical-align: middle;
}

.steps__card-image {
	width: 100%;
	max-width: 30px;
	filter: brightness(1.2) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.steps__card-text-heading {
	vertical-align: middle;
	margin-top: 16px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.15rem, 1.5vw, 1.4rem);
	font-weight: 600;
	font-style: italic;
	line-height: 1.45;
	color: var(--theme-card-heading-color);
}

.steps__card-text {
	vertical-align: middle;
	margin-top: 20px;
	font-family: "Rubik", sans-serif;
	font-size: clamp(0.9rem, 1.1vw, 1.05rem);
	font-weight: 400;
	line-height: 1.6;
	color: var(--theme-card-text-color);
}

/* Second Transition Section */

/* Second Transition Section */

#second-transition {
	display: none;
	height: 0;
	margin: 0;
	padding: 0;
}

/* Numbers Section */

.numbers {
	padding: calc(var(--header-offset) + 20px) 0 30px;
	height: 100dvh;
	min-height: 100dvh;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.numbers__container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	height: 100%;
	width: 100%;
	max-width: 1300px;
	position: relative;
	z-index: 10;
}

.numbers__heading-box {
	align-self: flex-start;
	text-align: left;
	margin-bottom: clamp(16px, 3vh, 32px);
}

.numbers__heading {
	opacity: 0;
	text-align: left;
	transform: translateY(-20px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.numbers__text-box {
	position: relative;
	display: none;
	align-items: center;
	justify-content: center;
	margin-top: 10vh;
	width: 100%;
}

.numbers__text {
	position: absolute;
	opacity: 0;
	font-family: "Rubik", sans-serif;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.85);
}

.numbers__box {
	display: flex;
	flex-direction: column;
	align-self: flex-start;
	margin-top: 0;
	width: 100%;
	max-width: 600px;
}

.numbers__item {
	display: flex;
	gap: 20px;
	padding: clamp(24px, 3.5vw, 42px) 0;
	opacity: 0.3;
	transition: opacity 0.4s ease, transform 0.4s ease;
	will-change: opacity, transform;
}

.numbers__item.active {
	opacity: 1 !important;
	transform: scale(1.04);
}

.numbers__item:nth-child(1) {
	padding-top: 0;
}

.numbers__item:nth-child(2) {
	border-top: 1px dashed rgba(255, 255, 255, 1);
}

.numbers__item:nth-child(3) {
	padding-bottom: 0;
	border-top: 1px dashed rgba(255, 255, 255, 1);
}

.numbers__item-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 20px;
	font-family: "Rubik", sans-serif;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1;
	border-radius: 80px;
	background-color: rgba(255, 255, 255, 0.1);
	color: white;
}

.numbers__info {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.numbers__item-title {
	font-family: "Rubik", sans-serif;
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.2;
	color: white;
}

.numbers__item-text {
	font-family: "Rubik", sans-serif;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
}

/* Final Section */

#final {
	position: relative;
	padding: calc(var(--header-offset) + 30px) 0 40px;
	overflow: hidden;
	height: 100dvh;
	box-sizing: border-box;
}

@-webkit-keyframes rotate {
	0% {
		transform: translateX(0);
	}

	25% {
		transform: translateX(20px);
	}

	50% {
		transform: translateX(0);
	}

	75% {
		transform: translateX(-20px);
	}

	100% {
		transform: translateX(0);
	}
}

@keyframes rotate {
	0% {
		transform: translateX(0);
	}

	25% {
		transform: translateX(20px);
	}

	50% {
		transform: translateX(0);
	}

	75% {
		transform: translateX(-20px);
	}

	100% {
		transform: translateX(0);
	}
}

.final__hand-icon {
	position: absolute;
	bottom: 25%;
	right: 50%;
	display: none;
	width: 40px;
	height: 40px;
	-webkit-animation: rotate 2s ease-in-out infinite;
	animation: rotate 2s ease-in-out infinite;
	filter: brightness(0) saturate(100%) invert(85%) sepia(100%) saturate(2%) hue-rotate(42deg) brightness(103%) contrast(101%);
}

.final__light-figure {
	position: absolute;
	top: 45%;
	left: 0;
	max-width: 480px;
	max-height: 360px;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.3);
	filter: blur(220px);
}

.final__bg-text-box {
	position: absolute;
	top: 20%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translate(-50%, 0);
}

.final__bg-text {
	font-family: var(--theme-final-bg-text-font);
	font-size: clamp(5rem, 26vw, 20rem);
	font-weight: 700;
	font-style: italic;
	line-height: 1;
	color: rgba(255, 255, 255, 0.08);
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
	letter-spacing: 2px;
}

.final .container {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	flex-direction: column;
	height: 100%;
	width: 100%;
	padding: 0 40px;
}

.final__order-box {
	max-width: 620px;
	z-index: 100;
	opacity: 0;
	transform: translateY(30px);
	will-change: opacity, transform;
}

.final__buttons {
	display: flex;
	gap: 14px;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 32px;
	width: 100%;
}

.final__btn {
	margin-top: 0;
	transition: all 0.3s ease;
}

.final__btn:hover {
	background-color: #534449;
	color: white;
	transform: translateY(-2px);
}

.final__btn--next {
	background: var(--theme-next-btn-bg);
	border: 1.5px solid var(--theme-next-btn-border);
	color: #ffffff;
}

.final__btn--next:hover {
	background-color: var(--theme-next-btn-hover-bg);
	border-color: var(--theme-next-btn-border);
	color: #ffffff;
	box-shadow: 0 8px 20px var(--theme-next-btn-hover-shadow);
}

.final__heading {
	opacity: 1;
	font-family: "Baloo 2", sans-serif;
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
}

.final__order-text {
	display: inline-block;
	margin-top: 10px;
	max-width: 450px;
	font-family: "Rubik", sans-serif;
	font-size: 1.15rem;
	line-height: 1.6;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.9);
}

@media screen and (min-width: 1600px) {
	.container {
		padding: 0 20px;
		max-width: 1340px;
	}

	.steps__card-text-block {
		margin-right: 120px;
	}

	.steps__card-heading {
		margin-left: 140px;
	}
}

@media screen and (max-width: 1439px) {
	.flip__second-figure {
		display: none;
	}
}

@media screen and (max-width: 1350px) {
	.steps__card-text {
		margin-right: 40px;
		max-width: 275px;
	}
}

@media screen and (max-width: 1280px) {
	.donut {
		transform: translate(-250px, -30px);
	}

	.numbers__box {
		max-width: 400px;
	}
}

@media screen and (max-width: 1200px) {
	.hero__heading-box {
		justify-content: center;
	}

	.donut {
		transform: translate(-24%, -30px);
	}

	.steps__card-heading {
		margin-left: 40px;
		white-space: nowrap;
	}

	.steps__card-text {
		margin-left: 40px;
	}

	.steps__card-heading {
		align-self: flex-start;
		margin: 50px 0 0 40px;
	}

	.steps__card-text-block {
		align-self: flex-end;
		margin: 0 30px 50px 0;
	}

	.numbers__box {
		margin-top: 150px;
		max-width: 300px;
	}

	.numbers__item {
		padding: 30px 0;
	}

	.numbers__item-title {
		font-size: 1.25rem;
	}

	.numbers__item-text {
		font-size: 1rem;
	}

	.numbers__item-number {
		width: 36px;
		height: 36px;
		font-size: 1rem;
	}

	.final__order-box {
		top: 25%;
	}

	.final__light-figure {
		top: 55%;
	}
}

@media screen and (max-width: 1100px) {
	.flip__first-figure {
		left: 50%;
		transform: translate(-50%, 0);
	}

	.flip__third-figure {
		display: none;
	}
}

@media screen and (min-width: 1025px) {
	.mobile-menu {
		display: none;
	}
}

@media screen and (max-width: 1024px) {

	.header__nav,
	.header__btn {
		display: none;
	}

	.final__hand-icon {
		display: block;
	}

	.header__btn-toggle {
		display: flex;
	}

	.steps__card-heading {
		position: absolute;
	}

	.steps__card-text-block {
		margin-left: 40px;
	}
}

@media screen and (max-width: 768px) {
	.primary__btn {
		padding: 10px 20px;
	}

	.hero__btn {
		margin: 80px 0;
		padding: 15px 40px;
	}

	.steps__card-heading,
	.steps__card-heading-special {
		font-size: 3rem;
	}

	.steps__card,
	.steps__card-first {
		align-items: flex-end;
	}

	.steps__card-heading {
		margin: 15vh 0 0 40px;
	}

	.steps__card-text-block {
		align-self: flex-start;
		align-items: flex-end;
		text-align: end;
		margin: 25vh 30px 0;
		max-width: 100%;
		width: 100%;
	}

	.steps__card-text {
		margin: 40px 0 0;
	}

	.final__hand-icon {
		right: 15%;
	}
}

@media screen and (max-width: 640px) {
	.final__heading .heading__special br {
		display: none;
	}

	.numbers__box {
		margin-top: 20vw;
	}
}

@media screen and (max-width: 575px) {

	body,
	.main {
		margin: 0;
	}

	.return-btn {
		width: 32px;
		height: 32px;
	}

	.return-btn img {
		width: 16px;
		height: 6px;
	}

	.donut {
		transform: translate(-24%, -70px);
	}

	.hero {
		border-radius: 0;
	}

	.header .container {
		padding: 0 20px;
	}

	.mobile-menu .container {
		padding: 55px 20px;
	}

	.container {
		padding: 0 10px;
	}

	.steps__card {
		gap: 30px;
	}

	.steps__card-heading {
		font-size: 1.5rem;
	}

	.steps__card-text-heading {
		font-size: 1rem;
	}

	.steps__card-text {
		font-size: 0.875rem;
	}

	.flip__shadow {
		width: 300px;
		height: 150px;
	}

	.final__order-box {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		margin-bottom: 100px;
		padding: 0 20px;
	}

	.final__order-text {
		max-width: 320px;
	}

	.final__btn {
		width: 100%;
	}

	.final__light-figure {
		top: 65%;
		left: 20%;
		max-width: 200px;
		max-height: 200px;
		filter: blur(110px);
	}

	.final__hand-icon {
		right: 7.5%;
	}
}

@media screen and (min-height: 800px) and (min-width: 1600px) {
	.donut {
		transform: translate(-325px, -20px);
	}
}

@media screen and (min-height: 900px) and (min-width: 1600px) {
	.donut {
		transform: translate(-325px, 0);
	}
}

@media screen and (min-height: 900px) and (max-width: 575px) {
	.donut {
		transform: translate(-24%, -50px);
	}
}

@media screen and (min-height: 1200px) and (max-width: 575px) {
	.donut {
		transform: translate(-24%, -20px);
	}
}

@media screen and (min-height: 900px) {
	/* Giữ layout tự nhiên, căn giữa cân đối không dồn ép */
}

@media screen and (max-height: 700px) {
	.numbers__box {
		margin-top: 10vw;
	}
}

@media (max-height: 700px) and (min-width: 1600px) {
	.donut {
		transform: translate(-325px, -40px);
	}
}

@media (max-height: 600px) {
	.hero__btn {
		margin: 24px 0 0;
	}

	.donut {
		transform: translate(-300px, 40px);
	}

	.heading-box .second-heading,
	.second-heading {
		font-size: clamp(1.5rem, 3vw, 42px);
	}

	.flip__text {
		font-size: 0.875rem;
	}

	.numbers__box {
		flex-direction: row;
		justify-content: center;
		align-items: center;
		gap: 40px;
		margin-top: 10vh;
		max-width: 100%;
	}

	.numbers__item:nth-child(1),
	.numbers__item:nth-child(2),
	.numbers__item:nth-child(3) {
		padding: 0;
		border-top: none;
	}

	#final {
		padding: 1.25em;
	}

	.final__hand-icon {
		bottom: 15%;
	}
}

@media (max-height: 600px) and (min-width: 1600px) {
	.donut {
		transform: translate(-325px, 20px);
	}
}

@media screen and (max-height: 600px) and (max-width: 1200px) {
	.donut {
		transform: translate(calc(-73vw + 50%), 40px);
	}
}

@media screen and (max-height: 600px) and (max-width: 900px) {
	.numbers__box {
		display: flex;
		gap: 20px;
		margin-top: 10vw;
	}

	.numbers__text-box {
		display: flex;
	}

	.numbers__item-number,
	.numbers__item-text,
	.final__order-text,
	.steps__card-text {
		display: none;
	}

	.final__btn {
		margin-top: 15px;
	}

	.final__hand-icon {
		right: 20%;
	}
}

@media screen and (max-height: 500px) and (min-width: 1440px) {
	.donut {
		height: clamp(500px, 80vh, 1200px);
		transform: translate(-325px, 40px);
	}

	.final__light-figure {
		top: 65%;
		left: 10%;
	}
}

@media screen and (max-height: 500px) and (max-width: 1440px) {
	.flip__text {
		display: none;
	}

	.donut {
		height: clamp(600px, 80vh, 1200px);
		transform: translate(calc(-70vw + 50%), 40px);
	}

	.numbers__box {
		margin-top: 20px;
	}

	.final__order-box {
		top: 30%;
		display: block;
	}

	.final__order-title {
		display: none;
	}

	.steps__heading-box {
		margin-top: clamp(1em, 7vh, 10em);
	}
}

@media screen and (max-height: 500px) and (min-width: 1280px) {
	.heading-box .second-heading {
		font-size: 1.5rem;
	}

	.heading-box .flip__heading {
		font-size: 2.5rem;
	}
}

@media screen and (max-height: 500px) and (min-width: 768px) and (max-width: 1439px) {
	.donut {
		transform: translate(calc(-72vw + 50%), -20px);
	}

	.flip__heading-box {
		margin: 0;
	}

	.final__order-title {
		display: block;
	}
}

@media screen and (max-height: 500px) and (min-width: 575px) and (max-width: 1024px) {
	.steps__card-text-block {
		display: none;
	}
}

@media screen and (max-height: 450px) and (max-width: 900px) and (min-width: 575px) {
	.hero__heading-box {
		margin-top: 0;
	}
}

@media (max-height: 400px) {
	.final__order-box {
		top: 20%;
	}

	.flip__heading-box {
		margin-top: 0;
	}

	.flip__heading br {
		display: none;
	}

	.flip__text {
		display: none;
	}

	.numbers__text-box {
		margin-top: 5vw;
	}
}

@media screen and (min-width: 1024px) and (max-height: 400px) {
	.hero__heading-box {
		margin-top: 0;
	}

	.numbers {
		padding: 1em 0;
	}

	.hero__second-text {
		display: none;
	}
}

@media screen and (max-width: 575px) and (max-height: 400px) {
	.steps__card-text-block {
		display: none;
	}
}

@media (max-height: 600px) and (max-width: 575px) {
	.donut {
		transform: translate(calc(-73vw + 50%), -30px);
	}

	.final__hand-icon {
		left: 15%;
	}
}

/* Ensure Caraflow header dropdowns stay closed until hovered */
header .mega-dropdown-menu,
header .dropdown-content {
	display: none;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
	border-radius: 0 0 16px 16px;
}

header .dropdown:hover .mega-dropdown-menu,
header .dropdown:hover .dropdown-content,
header .level1:hover .mega-dropdown-menu,
header .dropdown.active .mega-dropdown-menu {
	display: block;
}