:root {
	--bg: #ffffff;
	--bg-elevated: rgba(255, 255, 255, 0.85);
	--text: #212b35;
	--text-muted: #747c87;
	--border: rgba(33, 43, 53, 0.1);
	--accent: #0cc2ed;
	--accent-2: #2ad38b;
	--accent-3: #178ee9;
	--neuron-line: rgba(12, 194, 237, 0.35);
	--neuron-dot: rgba(12, 194, 237, 0.55);
	--card-shadow: 0 20px 60px -20px rgba(6, 12, 32, 0.2);
	--header-bg: rgba(255, 255, 255, 0.75);
}

[data-theme='dark'] {
	--bg: #060c20;
	--bg-elevated: rgba(24, 37, 55, 0.72);
	--text: #f2f4f9;
	--text-muted: #a3a8af;
	--border: rgba(255, 255, 255, 0.08);
	--accent: #4fcbf8;
	--accent-2: #3ae780;
	--accent-3: #0cc2ed;
	--neuron-line: rgba(79, 203, 248, 0.35);
	--neuron-dot: rgba(79, 203, 248, 0.75);
	--card-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
	--header-bg: rgba(6, 12, 32, 0.7);
}

* {
	box-sizing: border-box;
}

.hidden {
	display: none !important;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'Be Vietnam Pro', 'Segoe UI', system-ui, -apple-system, sans-serif;
	overflow-x: hidden;
	transition: background 0.4s ease, color 0.4s ease;
}

#neuron-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.site-wrap {
	position: relative;
	z-index: 1;
}

/* ---------- Header ---------- */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px clamp(20px, 5vw, 64px);
	background: var(--header-bg);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
	transition: background 0.4s ease, border-color 0.4s ease;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
}

.brand-mark {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1rem;
	box-shadow: 0 6px 18px -6px rgba(12, 194, 237, 0.6);
}

.nav-links {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 600;
	transition: color 0.2s ease;
}

.nav-links a:hover {
	color: var(--text);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.theme-toggle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--bg-elevated);
	color: var(--text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 1rem;
	transition: transform 0.2s ease, background 0.3s ease;
}

.theme-toggle:hover {
	transform: rotate(20deg) scale(1.05);
}

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
	cursor: pointer;
	border: none;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-wave {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	transform: scale(0);
	pointer-events: none;
	animation: btn-wave-spread 0.6s ease-out forwards;
}

.btn-ghost .btn-wave {
	background: rgba(127, 127, 127, 0.25);
}

@keyframes btn-wave-spread {
	to {
		transform: scale(1);
		opacity: 0;
	}
}

.btn-primary {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	box-shadow: 0 10px 24px -8px rgba(12, 194, 237, 0.55);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px -8px rgba(12, 194, 237, 0.65);
}

.btn-ghost {
	background: var(--bg-elevated);
	color: var(--text);
	border: 1px solid var(--border);
}

.btn-ghost:hover {
	transform: translateY(-2px);
}

.btn-lg {
	padding: 15px 30px;
	font-size: 1rem;
}

/* ---------- Sections shared ---------- */

section {
	position: relative;
	padding: clamp(70px, 10vw, 120px) clamp(20px, 6vw, 64px);
	max-width: 1180px;
	margin: 0 auto;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.section-title {
	font-size: clamp(1.8rem, 3.6vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 18px 0 12px;
}

.section-subtitle {
	color: var(--text-muted);
	font-size: 1.05rem;
	max-width: 640px;
	line-height: 1.6;
}

.section-head {
	text-align: center;
	margin: 0 auto 56px;
	max-width: 720px;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
	opacity: 0;
	transform: translateY(36px);
	transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
	opacity: 1;
	transform: translateY(0);
}

.reveal-delay-1.in-view { transition-delay: 0.1s; }
.reveal-delay-2.in-view { transition-delay: 0.2s; }
.reveal-delay-3.in-view { transition-delay: 0.3s; }

/* ---------- Hero ---------- */

.hero {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding-top: 120px;
}

.hero-title {
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.08;
	margin: 22px 0 20px;
}

.hero-title .grad {
	background: linear-gradient(135deg, var(--accent), var(--accent-2) 50%, var(--accent-3));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.rotate-word {
	display: inline-block;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.rotate-word.is-swapping {
	opacity: 0;
	transform: translateY(8px);
}

.hero-subtitle {
	color: var(--text-muted);
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	max-width: 620px;
	line-height: 1.7;
	margin-bottom: 34px;
}

.hero-cta {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
}

.hero-stats {
	display: flex;
	gap: clamp(24px, 6vw, 64px);
	margin-top: 64px;
	flex-wrap: wrap;
	justify-content: center;
}

.hero-stat {
	text-align: center;
}

.hero-stat b {
	display: block;
	font-size: 2rem;
	font-weight: 800;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-stat span {
	color: var(--text-muted);
	font-size: 0.85rem;
	font-weight: 600;
}

.scroll-cue {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	color: var(--text-muted);
	font-size: 1.3rem;
	animation: bounce 2s infinite;
}

@keyframes bounce {
	0%, 100% { transform: translate(-50%, 0); }
	50% { transform: translate(-50%, 10px); }
}

/* ---------- Usecase cards ---------- */

.usecase-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 28px;
}

.usecase-card {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: 22px;
	padding: 32px 28px;
	backdrop-filter: blur(10px);
	box-shadow: var(--card-shadow);
	position: relative;
	overflow: hidden;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.usecase-card:hover {
	transform: translateY(-8px);
	border-color: var(--accent);
}

.usecase-icon {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: #fff;
	margin-bottom: 20px;
}

.usecase-card.c-sales .usecase-icon { background: linear-gradient(21deg, #0cc2ed 0%, #4fcbf8 100%); }
.usecase-card.c-booking .usecase-icon { background: linear-gradient(135deg, #178ee9, #0cc2ed); }
.usecase-card.c-affiliate .usecase-icon { background: linear-gradient(272.65deg, #0cceb0 20.05%, #2ad38b 84.62%); }
.usecase-card.c-other .usecase-icon { background: linear-gradient(135deg, #26b896, #2ad38b); }

.usecase-card h3 {
	font-size: 1.25rem;
	font-weight: 800;
	margin: 0 0 10px;
}

.usecase-card p {
	color: var(--text-muted);
	line-height: 1.65;
	font-size: 0.95rem;
	margin: 0 0 18px;
}

.usecase-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.usecase-tags span {
	font-size: 0.76rem;
	font-weight: 700;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--bg);
	border: 1px solid var(--border);
	color: var(--text-muted);
}

.usecase-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	background: none;
	border: none;
	padding: 0;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--accent);
	cursor: pointer;
	transition: gap 0.2s ease, color 0.2s ease;
}

.usecase-more i {
	font-size: 0.8rem;
	transition: transform 0.2s ease;
}

.usecase-more:hover {
	gap: 12px;
	color: var(--accent-3);
}

.usecase-more:hover i {
	transform: translateX(2px);
}

/* ---------- Features ---------- */

.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}

.feature-item {
	padding: 26px;
	border-radius: 18px;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
}

.feature-item .f-icon {
	font-size: 1.4rem;
	margin-bottom: 14px;
	display: inline-block;
	color: var(--accent);
}

.feature-item h4 {
	margin: 0 0 8px;
	font-size: 1.02rem;
	font-weight: 700;
}

.feature-item p {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.6;
}

/* ---------- How it works ---------- */

.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
	counter-reset: step;
}

.step {
	position: relative;
	padding: 30px 24px 24px;
	border-radius: 18px;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
}

.step::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	top: -18px;
	left: 24px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 18px -6px rgba(12, 194, 237, 0.6);
}

.step h4 {
	margin: 10px 0 8px;
	font-weight: 700;
}

.step p {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.6;
}

/* ---------- CTA banner ---------- */

.cta-banner {
	text-align: center;
	border-radius: 28px;
	padding: clamp(48px, 8vw, 80px) clamp(24px, 6vw, 60px);
	background: linear-gradient(135deg, rgba(12, 194, 237, 0.15), rgba(42, 211, 139, 0.15));
	border: 1px solid var(--border);
}

.cta-banner h2 {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 800;
	margin: 0 0 14px;
}

.cta-banner p {
	color: var(--text-muted);
	max-width: 520px;
	margin: 0 auto 28px;
	line-height: 1.6;
}

/* ---------- Testimonials ---------- */

.testimonial-carousel {
	position: relative;
	margin: 0 -20px;
}

.testimonial-swiper {
	padding: 12px 24px 24px;
}

.testimonial-swiper .swiper-slide {
	height: auto;
	box-sizing: border-box;
}

.carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--bg-elevated);
	color: var(--text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 1rem;
	box-shadow: var(--card-shadow);
	transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.carousel-arrow.testimonial-prev {
	left: -8px;
}

.carousel-arrow.testimonial-next {
	right: -8px;
}

@media (min-width: 640px) {
	.carousel-arrow.testimonial-prev {
		left: -22px;
	}

	.carousel-arrow.testimonial-next {
		right: -22px;
	}
}

.carousel-arrow:hover {
	border-color: var(--accent);
	color: var(--accent);
	transform: translateY(-50%) scale(1.05);
}

.testimonial-card {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: 22px;
	padding: 30px 26px;
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.testimonial-card:hover {
	transform: translateY(-8px);
	border-color: var(--accent);
}

.testimonial-stars {
	color: #f59e0b;
	font-size: 0.9rem;
	margin-bottom: 16px;
}

.testimonial-quote {
	color: var(--text);
	font-size: 0.95rem;
	line-height: 1.7;
	margin: 0 0 24px;
	flex: 1;
}

.testimonial-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.testimonial-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.testimonial-name {
	font-weight: 700;
	font-size: 0.92rem;
}

.testimonial-role {
	color: var(--text-muted);
	font-size: 0.8rem;
}

/* ---------- Pricing ---------- */

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 28px;
	align-items: stretch;
}

.pricing-card {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: 22px;
	padding: 32px 28px;
	backdrop-filter: blur(10px);
	box-shadow: var(--card-shadow);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.pricing-card:hover {
	transform: translateY(-8px);
	border-color: var(--accent);
}

.pricing-card.is-featured {
	border-color: var(--accent);
	box-shadow: 0 24px 70px -20px rgba(12, 194, 237, 0.45);
}

.pricing-badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 6px 16px;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: 0 8px 18px -6px rgba(12, 194, 237, 0.6);
}

.pricing-name {
	font-size: 1.1rem;
	font-weight: 800;
	margin: 6px 0 4px;
}

.pricing-desc {
	color: var(--text-muted);
	font-size: 0.88rem;
	margin: 0 0 20px;
	line-height: 1.5;
}

.pricing-price {
	font-size: clamp(1.5rem, 4vw, 1.9rem);
	font-weight: 800;
	margin-bottom: 2px;
}

.pricing-price small {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-muted);
}

.pricing-period {
	color: var(--text-muted);
	font-size: 0.82rem;
	margin-bottom: 24px;
}

.pricing-features {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pricing-features li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.9rem;
	color: var(--text);
}

.pricing-features i {
	color: var(--accent);
	margin-top: 3px;
	font-size: 0.85rem;
}

.pricing-card .btn {
	justify-content: center;
	width: 100%;
}

/* ---------- Lead form ---------- */

.lead-form {
	max-width: 760px;
	margin: 0 auto;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: 24px;
	padding: clamp(28px, 5vw, 44px);
	backdrop-filter: blur(10px);
	box-shadow: var(--card-shadow);
}

.lead-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 8px;
	margin-bottom: 8px;
}

.lead-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lead-field label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-muted);
}

.lead-field input,
.lead-field select {
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--bg);
	color: var(--text);
	font-size: 0.95rem;
	font-family: inherit;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-field input:focus,
.lead-field select:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(12, 194, 237, 0.18);
}

.lead-field.has-error input,
.lead-field.has-error select {
	border-color: #ef4444;
}

.lead-field.has-error input:focus,
.lead-field.has-error select:focus {
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.field-error {
	color: #ef4444;
	font-size: 0.8rem;
	display: block;
}

.field-error:empty {
	display: none;
}

.lead-form-error {
	color: #ef4444;
	font-size: 0.88rem;
	margin: 16px 0 0;
}

.lead-form-success {
	color: #22c55e;
	font-size: 0.92rem;
	font-weight: 600;
	margin: 16px 0 0;
}

.lead-form-submit {
	margin-top: 24px;
	width: 100%;
	justify-content: center;
}

/* ---------- FAQ ---------- */

.faq-list {
	max-width: 760px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.faq-item {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	transition: border-color 0.3s ease;
}

.faq-item.is-open {
	border-color: var(--accent);
}

.faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	background: none;
	border: none;
	color: var(--text);
	font-family: inherit;
	font-size: 0.98rem;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.faq-question i {
	color: var(--accent);
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.faq-item.is-open .faq-question i {
	transform: rotate(180deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-answer {
	max-height: 300px;
}

.faq-answer p {
	margin: 0;
	padding: 0 22px 20px;
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.65;
}

/* ---------- Footer ---------- */

.site-footer {
	border-top: 1px solid var(--border);
	padding: 48px clamp(20px, 6vw, 64px) 32px;
}

.footer-inner {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	justify-content: space-between;
}

.footer-brand {
	max-width: 320px;
}

.footer-brand p {
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.6;
	margin-top: 12px;
}

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

.footer-contact a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
	transition: color 0.2s ease;
}

.footer-contact a:hover {
	color: var(--accent);
}

.footer-contact .icon-badge {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
}

.footer-bottom {
	max-width: 1180px;
	margin: 32px auto 0;
	padding-top: 20px;
	border-top: 1px solid var(--border);
	text-align: center;
	color: var(--text-muted);
	font-size: 0.82rem;
}

/* ---------- Mobile nav ---------- */

.nav-toggle {
	display: none;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: var(--bg-elevated);
	color: var(--text);
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 1.05rem;
}

.nav-cta {
	display: none;
}

@media (max-width: 780px) {
	.nav-links {
		display: flex;
		flex-direction: column;
		gap: 4px;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		padding: 12px clamp(20px, 5vw, 64px) 20px;
		background: var(--bg);
		backdrop-filter: blur(14px);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--card-shadow);
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transition: max-height 0.3s ease, opacity 0.2s ease;
	}

	.nav-links.is-open {
		max-height: 480px;
		opacity: 1;
	}

	.nav-links li {
		padding: 10px 0;
		border-bottom: 1px solid var(--border);
	}

	.nav-links li:last-child {
		border-bottom: none;
	}

	.nav-links a {
		display: block;
	}

	.nav-cta {
		display: block;
		padding-top: 14px;
	}

	.nav-cta a {
		display: inline-flex;
		color: #fff;
	}

	.header-cta {
		display: none;
	}

	.nav-toggle {
		display: flex;
	}
}

/* ---------- Zalo floating button ---------- */

.zalo-float {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 60;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	box-shadow: 0 10px 30px -8px rgba(0, 104, 255, 0.55);
	animation: zalo-pulse 2.4s ease-in-out infinite;
	transition: transform 0.2s ease;
}

.zalo-float:hover {
	transform: scale(1.08);
}

.zalo-float img {
	width: 44px;
	height: 44px;
}

@keyframes zalo-pulse {
	0%, 100% {
		box-shadow: 0 10px 30px -8px rgba(0, 104, 255, 0.55), 0 0 0 0 rgba(0, 104, 255, 0.45);
	}
	50% {
		box-shadow: 0 10px 30px -8px rgba(0, 104, 255, 0.55), 0 0 0 12px rgba(0, 104, 255, 0);
	}
}

@media (max-width: 640px) {
	.zalo-float {
		right: 16px;
		bottom: 16px;
		width: 50px;
		height: 50px;
	}

	.zalo-float img {
		width: 38px;
		height: 38px;
	}
}

/* ---------- Scroll to top button ---------- */

.scroll-top-btn {
	position: fixed;
	right: 24px;
	bottom: 96px;
	z-index: 60;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-elevated);
	backdrop-filter: blur(10px);
	color: var(--accent);
	font-size: 1rem;
	cursor: pointer;
	box-shadow: var(--card-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.scroll-top-btn.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.scroll-top-btn:hover {
	color: var(--accent-3);
}

.scroll-top-ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.scroll-top-ring-bg {
	fill: none;
	stroke: var(--border);
	stroke-width: 3;
}

.scroll-top-ring-progress {
	fill: none;
	stroke: var(--accent);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 125.6;
	stroke-dashoffset: 125.6;
	transition: stroke-dashoffset 0.1s linear;
}

@media (max-width: 640px) {
	.scroll-top-btn {
		right: 16px;
		bottom: 76px;
		width: 42px;
		height: 42px;
		font-size: 0.9rem;
	}
}
