/* ==========================================================================
   style.css — Giao diện trang chính
   Hệ thống thiết kế: bo góc đều (--radius), 2 màu chủ đạo (--primary, --accent),
   chế độ Sáng / Tối, hiệu ứng mượt và nhẹ nhàng.
   ========================================================================== */

/* ---------- 1. Token màu & kích thước ---------- */
:root {
  --primary: #7c5cff;
  --accent: #22d3ee;
  --radius: 14px;
  --radius-sm: calc(var(--radius) * .7);
  --radius-lg: calc(var(--radius) * 1.5);
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --grad: linear-gradient(135deg, var(--primary), var(--accent));
  --on-primary: #fff;
  --font-display: var(--font);
  --primary-soft: color-mix(in srgb, var(--primary) 14%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --beat: 0;
}
[data-theme="dark"] {
  --bg: #0a0c16;
  --bg-2: #10132a;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .08);
  --surface-solid: #14172e;
  --border: rgba(255, 255, 255, .09);
  --text: #e9ebf8;
  --muted: #9ba1c2;
  --shadow: 0 12px 34px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  --glass: rgba(16, 19, 40, .62);
  --blob-opacity: .45;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f5f6fb;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, .78);
  --surface-2: #eef0f8;
  --surface-solid: #ffffff;
  --border: rgba(20, 28, 70, .09);
  --text: #1a1e3a;
  --muted: #5a6186;
  --shadow: 0 12px 30px rgba(34, 44, 110, .08);
  --shadow-lg: 0 24px 60px rgba(34, 44, 110, .14);
  --glass: rgba(255, 255, 255, .72);
  --blob-opacity: .28;
  color-scheme: light;
}

/* ---------- 2. Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--text); background: var(--bg); overflow-x: clip;
  -webkit-font-smoothing: antialiased; transition: background .5s var(--ease), color .5s var(--ease);
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
::selection { background: var(--primary); color: var(--on-primary); }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: middle; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Thanh cuộn */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--primary) 45%, var(--bg)); border-radius: 10px; border: 2px solid var(--bg); }

/* ---------- 3. Nút & thành phần chung ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.5em; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
  overflow: hidden; white-space: nowrap; isolation: isolate;
}
.btn--primary { background: var(--grad); color: var(--on-primary); box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn--primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .7s var(--ease);
}
.btn--primary:hover::before { transform: translateX(100%); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px color-mix(in srgb, var(--primary) 45%, transparent); }
.btn--ghost { background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn--sm { padding: .55em 1.1em; font-size: .88rem; }
.btn--lg { padding: 1em 2em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico--move { transform: translateX(4px); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: ripple .6s linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); transition: .3s var(--ease);
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }

.badge {
  display: inline-flex; align-items: center; gap: .55em; padding: .45em 1em; border-radius: 99px;
  background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  color: color-mix(in srgb, var(--primary) 70%, var(--text)); font-size: .85rem; font-weight: 600;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.card {
  position: relative; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
[data-card="solid"] .card { background: var(--surface-solid); backdrop-filter: none; }
[data-card="outline"] .card { background: transparent; box-shadow: none; border: 1.5px solid var(--border); backdrop-filter: none; }

/* Hiệu ứng đèn soi theo chuột trên thẻ */
.spot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--primary) 16%, transparent), transparent 45%);
}
.spot:hover::after { opacity: 1; }

/* ---------- 4. Tiêu đề mục ---------- */
.section { position: relative; padding: 110px 0; }
.section:nth-of-type(even)::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-2) 60%, transparent) 20%, color-mix(in srgb, var(--bg-2) 60%, transparent) 80%, transparent);
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head__eyebrow {
  display: inline-flex; align-items: center; gap: .5em; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.section-head__eyebrow::before, .section-head__eyebrow::after { content: ''; width: 24px; height: 2px; border-radius: 2px; background: var(--grad); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* ---------- 5. Preloader & màn chào ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; gap: 28px; justify-items: center;
  background: var(--bg); transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__logo { position: relative; width: 88px; height: 88px; display: grid; place-items: center; }
.preloader__logo b { font-size: 2.2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.preloader__ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--primary); border-right-color: var(--accent); animation: spin 1s linear infinite; }
.preloader__bar { width: 160px; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 40%; background: var(--grad); border-radius: 4px; animation: load 1.2s var(--ease) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

.gate {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--primary) 30%, var(--bg)), var(--bg) 60%);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.gate.leave { opacity: 0; transform: scale(1.08); pointer-events: none; }
.gate__inner { text-align: center; max-width: 440px; }
.gate__logo {
  width: 96px; height: 96px; margin: 0 auto 26px; border-radius: var(--radius-lg); display: grid; place-items: center;
  background: var(--grad); color: var(--on-primary); font-size: 2.4rem; font-weight: 800; animation: float 4s ease-in-out infinite;
  box-shadow: 0 20px 50px color-mix(in srgb, var(--primary) 45%, transparent);
}
.gate h2 { font-size: 2rem; }
.gate p { color: var(--muted); margin-bottom: 28px; }
.gate__silent { display: block; margin: 16px auto 0; color: var(--muted); font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 6. Nền động ---------- */
#bg-canvas { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 65%);
}
.bg-blobs { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.bg-blobs span {
  position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: var(--blob-opacity);
  animation: blob 22s ease-in-out infinite alternate; transform: scale(calc(1 + var(--beat) * .25));
}
.bg-blobs span:nth-child(1) { background: var(--primary); top: -160px; left: -120px; }
.bg-blobs span:nth-child(2) { background: var(--accent); top: 30%; right: -180px; animation-delay: -7s; animation-duration: 26s; }
.bg-blobs span:nth-child(3) { background: color-mix(in srgb, var(--primary) 50%, #ff5c9a); bottom: -200px; left: 30%; animation-delay: -14s; width: 420px; height: 420px; }
@keyframes blob {
  0% { translate: 0 0; } 33% { translate: 120px 80px; } 66% { translate: -80px 140px; } 100% { translate: 60px -60px; }
}
#cursor-glow {
  position: fixed; width: 460px; height: 460px; left: 0; top: 0; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 18%, transparent), transparent 65%);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .5s;
}
body.has-glow #cursor-glow { opacity: 1; }
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- 7. Thanh thông báo ---------- */
.announce {
  position: relative; z-index: 110; text-align: center; font-size: .9rem; padding: 10px 48px; color: var(--on-primary);
  background: var(--grad); background-size: 200% 100%; animation: shift 8s ease infinite;
}
.announce a { font-weight: 700; margin-left: 10px; text-decoration: underline; text-underline-offset: 3px; }
.announce__close { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--on-primary); opacity: .8; display: grid; }
.announce__close:hover { opacity: 1; }
@keyframes shift { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }

/* ---------- 8. Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h); display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, transform .45s var(--ease), border-color .4s; border-bottom: 1px solid transparent;
}
.header.scrolled { background: var(--glass); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-color: var(--border); box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.header.hide { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.logo__mark {
  width: 38px; height: 38px; border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--on-primary); font-size: 1.05rem;
  background: var(--grad); box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 40%, transparent); transition: transform .5s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-10deg) scale(1.06); }
.nav { display: flex; gap: 4px; padding: 5px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); position: relative; }
.nav a { position: relative; z-index: 1; padding: 7px 15px; border-radius: 99px; font-size: .9rem; font-weight: 500; color: var(--muted); transition: color .3s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav__pill { position: absolute; top: 5px; height: calc(100% - 10px); border-radius: 99px; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); transition: left .45s var(--ease), width .45s var(--ease), opacity .3s; opacity: 0; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

.mobile-menu { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .45); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: .4s var(--ease); }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(320px, 85vw); padding: 90px 24px 24px;
  background: var(--bg-2); border-left: 1px solid var(--border); transform: translateX(100%); transition: transform .5s var(--ease);
}
.mobile-menu.open .mobile-menu__panel { transform: none; }
.mobile-menu nav a {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600;
  opacity: 0; transform: translateX(30px); transition: .5s var(--ease); transition-delay: calc(var(--i) * 50ms);
}
.mobile-menu.open nav a { opacity: 1; transform: none; }
.mobile-menu nav a:hover, .mobile-menu nav a.active { background: var(--primary-soft); color: var(--primary); }

/* ---------- 9. Hero ---------- */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding: 60px 0 100px; overflow-x: clip; }
.hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.hero__title { font-size: clamp(2.2rem, 4.4vw, 3.5rem); font-weight: 800; margin: 22px 0 16px; letter-spacing: -.035em; }
.hero__title .grad-text { background-size: 200% 200%; animation: shift 6s ease infinite; }
.hero__typing { font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 600; color: var(--muted); margin-bottom: 18px; min-height: 1.6em; }
.hero__typing .typing { color: var(--text); }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--primary); margin-left: 3px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__sub { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: .88rem;
  background: var(--surface); border: 1px solid var(--border); transition: .3s var(--ease);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip .ico { color: var(--primary); }

.hero--center .hero__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero--center .hero__sub, .hero--center .hero__title { margin-left: auto; margin-right: auto; }
.hero--center .hero__title { max-width: 900px; }
.hero--center .hero__cta, .hero--center .hero__chips { justify-content: center; }
.hero--center .hero__visual { display: none; }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.orbit { position: absolute; width: 440px; height: 440px; border-radius: 50%; border: 1px dashed var(--border); animation: spin 60s linear infinite; }
.orbit--2 { width: 320px; height: 320px; animation-direction: reverse; animation-duration: 40s; }
.orbit i { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 18px var(--primary); }
.profile-card {
  position: relative; z-index: 1; width: 300px; padding: 30px 26px; text-align: center; border-radius: var(--radius-lg);
  transform-style: preserve-3d;
}
.profile-card__avatar { position: relative; width: 108px; height: 108px; margin: 0 auto 18px; display: grid; place-items: center; }
.profile-card__avatar::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary)); animation: spin 4s linear infinite; }
.profile-card__avatar > b { position: relative; width: calc(100% - 8px); height: calc(100% - 8px); border-radius: 50%; display: grid; place-items: center; background: var(--surface-solid); font-size: 2rem; font-weight: 800; }
.profile-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.profile-card__role { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.stars { display: inline-flex; gap: 3px; color: #fbbf24; }
.stars .ico { width: 16px; height: 16px; fill: currentColor; }
.stars .off { color: var(--surface-2); }
.profile-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.profile-card__stats b { display: block; font-size: 1.15rem; }
.profile-card__stats span { font-size: .72rem; color: var(--muted); }
.float-badge {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 7px;
  border-radius: 99px; font-size: .84rem; font-weight: 600; white-space: nowrap;
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), border-color .3s;
}
.float-badge:hover { transform: scale(1.06); border-color: color-mix(in srgb, var(--primary) 50%, transparent); }
/* Nhãn bay vòng quanh thẻ (vị trí do JS tính mỗi khung hình) */
.hero__visual.orbiting { min-height: 540px; }
.hero__visual.orbiting .float-badge { top: 0; left: 0; right: auto; bottom: auto; will-change: transform, opacity; transition: border-color .3s; }
.float-badge__ico {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: var(--on-primary); box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 40%, transparent);
}
.float-badge__ico .ico { width: 15px; height: 15px; }
/* 8 vị trí quanh thẻ hồ sơ, mỗi nhãn nhún lệch nhịp nhau */
.fb-1 { top: 12%; left: -8%; animation-delay: -1s; }
.fb-2 { top: 24%; right: -10%; animation-delay: -2.5s; }
.fb-3 { top: 93%; left: -8%; animation-delay: -4s; }
.fb-4 { top: 91%; right: -12%; animation-delay: -1.8s; }
.fb-5 { top: -3%; right: 4%; animation-delay: -3.2s; }
.fb-6 { top: 46%; left: -15%; animation-delay: -0.6s; }
.fb-7 { top: -6%; left: 8%; animation-delay: -2.1s; }
.fb-8 { top: 42%; right: -17%; animation-delay: -3.7s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

.scroll-down { position: absolute; bottom: 30px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--muted); border-radius: 14px; opacity: .7; }
.scroll-down::before { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--primary); animation: wheel 1.8s ease infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- 10. Giới thiệu ---------- */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about__visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about__tile { padding: 26px; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; }
.about__tile .ico { width: 34px; height: 34px; color: var(--primary); margin-bottom: auto; }
.about__tile b { font-size: 1.05rem; margin-top: 16px; }
.about__tile--main {
  grid-row: span 2; background: var(--grad); color: var(--on-primary); border: 0; justify-content: center; text-align: center; min-height: 356px;
  box-shadow: 0 20px 50px color-mix(in srgb, var(--primary) 35%, transparent); overflow: hidden;
}
.about__tile--main::before { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .12); top: -60px; right: -60px; }
.about__tile--main strong { font-size: 4.2rem; line-height: 1; font-weight: 800; }
.about__tile--main span { opacity: .9; font-weight: 500; }
.about__text p { color: var(--muted); font-size: 1.05rem; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checklist .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); margin-top: 1px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 70px; }
.stat { padding: 28px 20px; text-align: center; }
.stat b { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1.1; margin-bottom: 4px; }
.stat > span { color: var(--muted); font-size: .92rem; }

/* ---------- 11. Dịch vụ ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter {
  padding: 8px 20px; border-radius: 99px; font-weight: 600; font-size: .9rem; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); transition: .3s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--primary); }
.filter.active { background: var(--grad); color: var(--on-primary); border-color: transparent; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 30%, transparent); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { padding: 32px 28px; display: flex; flex-direction: column; overflow: hidden; }
.service.is-hidden { display: none; }
.service.pop { animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.service:hover { border-color: color-mix(in srgb, var(--primary) 45%, transparent); box-shadow: var(--shadow-lg); }
.service__icon {
  width: 60px; height: 60px; border-radius: var(--radius); display: grid; place-items: center; margin-bottom: 22px;
  background: var(--primary-soft); color: var(--primary); transition: .5s var(--ease);
}
.service__icon .ico { width: 28px; height: 28px; }
.service:hover .service__icon { background: var(--grad); color: var(--on-primary); transform: rotate(-8deg) scale(1.08); box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 40%, transparent); }
.service h3 { font-size: 1.25rem; }
.service p { color: var(--muted); flex: 1; }
.service__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid var(--border); }
.service__price { font-weight: 700; color: var(--primary); font-size: .95rem; }
.service__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.service__more:hover { color: var(--primary); }
.service__more:hover .ico { transform: translateX(4px); }
.service__more .ico { transition: transform .3s var(--ease); }
.tag-featured { position: absolute; top: 18px; right: 18px; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.tag-cat { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- 12. Quy trình ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: step; }
.process::before { content: ''; position: absolute; top: 44px; left: 12%; right: 12%; height: 2px; background: var(--border); }
.process__line { position: absolute; top: 44px; left: 12%; height: 2px; width: 0; background: var(--grad); transition: width 1.8s var(--ease); }
.process.in-view .process__line { width: 76%; }
.step { text-align: center; padding: 0 10px; position: relative; }
.step__num {
  position: relative; width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); border: 2px solid var(--border); transition: .5s var(--ease);
}
.step__num .ico { width: 30px; height: 30px; color: var(--primary); }
.step__num em { position: absolute; top: -4px; right: -4px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .8rem; font-weight: 800; color: var(--on-primary); background: var(--grad); }
.step:hover .step__num { border-color: var(--primary); transform: translateY(-6px); box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 30%, transparent); }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- 13. Bảng giá ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { padding: 36px 30px; display: flex; flex-direction: column; }
.plan:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.plan--hl { border: 1.5px solid transparent; background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box, var(--grad) border-box; transform: scale(1.04); }
.plan--hl:hover { transform: scale(1.04) translateY(-8px); }
.plan__ribbon { position: absolute; top: -13px; left: 50%; translate: -50% 0; padding: 5px 16px; border-radius: 99px; font-size: .78rem; font-weight: 700; color: var(--on-primary); background: var(--grad); white-space: nowrap; }
.plan h3 { font-size: 1.2rem; color: var(--muted); font-weight: 600; }
.plan__price { font-size: 2.3rem; font-weight: 800; line-height: 1.1; margin: 6px 0 4px; }
.plan__price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan__desc { color: var(--muted); font-size: .95rem; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: center; }
.plan li .ico { color: #22c55e; }

/* ---------- 14. Đánh giá ---------- */
.slider { position: relative; max-width: 820px; margin: 0 auto; }
.slider__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.slider__track { display: flex; transition: transform .7s var(--ease); }
.review { flex: 0 0 100%; padding: 8px; }
.review__card { padding: 44px 48px; text-align: center; }
.review__quote { width: 44px; height: 44px; color: var(--primary); opacity: .35; margin: 0 auto 14px; }
.review__text { font-size: 1.15rem; line-height: 1.75; margin-bottom: 26px; }
.review__who { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--on-primary); background: var(--grad); flex-shrink: 0; }
.review__who b { display: block; }
.review__who span { color: var(--muted); font-size: .88rem; }
.slider__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 99px; background: var(--surface-2); transition: .4s var(--ease); }
.dots button.active { width: 30px; background: var(--grad); }

/* ---------- 15. Hỏi đáp ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item { overflow: hidden; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; text-align: left; font-weight: 600; font-size: 1.02rem; }
.faq__q .ico { transition: transform .4s var(--ease); color: var(--primary); }
.faq__item.open .faq__q .ico { transform: rotate(45deg); }
.faq__item.open { border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq__item.open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* ---------- 16. Liên hệ ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.contact__info { display: grid; gap: 14px; align-content: start; }
.info-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.info-card:hover { transform: translateX(6px); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.info-card__icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.info-card__body { flex: 1; min-width: 0; }
.info-card__body span { display: block; font-size: .8rem; color: var(--muted); }
.info-card__body b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.copy-btn { color: var(--muted); padding: 8px; border-radius: var(--radius-sm); display: grid; transition: .3s; }
.copy-btn:hover { color: var(--primary); background: var(--primary-soft); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); transition: .35s var(--ease); }
.socials a:hover { background: var(--grad); color: var(--on-primary); border-color: transparent; transform: translateY(-4px); }
.map { overflow: hidden; height: 220px; padding: 0; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2); }
[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }
.form { padding: 34px; }
.form h3 { font-size: 1.35rem; }
.form > p { color: var(--muted); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-2); outline: none; transition: border-color .3s, box-shadow .3s, background .3s;
}
.field select option { background: var(--surface-solid); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field.invalid input, .field.invalid textarea { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }
.field__err { font-size: .78rem; color: #ef4444; min-height: 0; }
.form__foot { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.form__note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-success { text-align: center; padding: 40px 10px; }
.form-success__icon { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, .14); color: #22c55e; animation: pop .6s var(--ease); }
.form-success__icon .ico { width: 40px; height: 40px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- 17. Footer ---------- */
.footer { position: relative; padding: 70px 0 30px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 50%, transparent); }
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(var(--fcols, 2), minmax(0, 1fr)); gap: 40px; }
/* Cột danh sách link tự do (VD: Cộng đồng) */
.footer ul.flinks { gap: 12px; }
.footer .flink { display: flex; align-items: center; gap: 10px; color: var(--muted); transition: color .3s, transform .3s var(--ease); }
.footer a.flink:hover { color: var(--text); transform: translateX(3px); }
.flink__ico { width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--primary); transition: .3s var(--ease); }
.footer a.flink:hover .flink__ico { background: var(--grad); color: var(--on-primary); border-color: transparent; }
.flink__ico .ico { width: 16px; height: 16px; }
.flink__txt { min-width: 0; line-height: 1.3; }
.flink__txt b { display: block; font-size: .9rem; font-weight: 600; color: var(--text); }
.flink__txt small { display: block; font-size: .76rem; color: var(--muted); }
.footer p { color: var(--muted); max-width: 360px; }
.footer h4 { font-size: 1rem; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a, .footer ul li { color: var(--muted); display: inline-flex; gap: 8px; align-items: center; transition: color .3s; }
.footer ul a:hover { color: var(--primary); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.footer__bottom a:hover { color: var(--primary); }

/* ---------- 18. Nút nổi ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(12px); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .4s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--grad); color: var(--on-primary); border-color: transparent; }
.to-top svg.ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }

/* Thanh liên hệ nhanh: thu gọn thành 1 nút nhỏ ở cạnh màn hình, bấm để trượt ra */
.dock {
  --tab: 34px; --dx: calc(100% - var(--tab));
  position: fixed; top: 50%; right: 0; z-index: 92; display: flex; align-items: center;
  transform: translate(var(--dx), -50%); transition: transform .5s var(--ease);
}
.dock.open { --dx: 0px; }
.dock--left { right: auto; left: 0; flex-direction: row-reverse; --dx: calc(-100% + var(--tab)); }
.dock--left.open { --dx: 0px; }
.dock__tab {
  position: relative; flex-shrink: 0; width: var(--tab); height: 60px; display: grid; place-items: center;
  border-radius: 12px 0 0 12px; background: var(--grad); color: var(--on-primary);
  box-shadow: -4px 6px 18px color-mix(in srgb, var(--primary) 35%, transparent); transition: width .3s var(--ease);
}
.dock--left .dock__tab { border-radius: 0 12px 12px 0; box-shadow: 4px 6px 18px color-mix(in srgb, var(--primary) 35%, transparent); }
.dock__tab .ico { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.dock:not(.open) .dock__tab:hover { width: calc(var(--tab) + 6px); }
.dock.open .dock__tab .ico { transform: rotate(-12deg); }
.dock__dot { position: absolute; top: 7px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
.dock--left .dock__dot { right: auto; left: 6px; }
.dock.open .dock__dot { display: none; }
.dock__panel {
  width: 236px; max-height: min(78vh, 520px); overflow: auto; padding: 8px;
  background: var(--glass); border: 1px solid var(--border); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: var(--shadow-lg);
  visibility: hidden; transition: visibility 0s .5s;
}
.dock--left .dock__panel { border-right: 1px solid var(--border); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.dock.open .dock__panel { visibility: visible; transition-delay: 0s; }
.dock__head { padding: 6px 8px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.dock__head b { display: block; font-size: .86rem; }
.dock__head small { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--muted); }
.dock__head small i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.dock__item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--radius-sm); transition: background .25s, transform .25s var(--ease); }
.dock__item:hover { background: var(--surface-2); transform: translateX(-3px); }
.dock--left .dock__item:hover { transform: translateX(3px); }
.dock__ico {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: var(--on-primary); box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.dock__ico .ico { width: 17px; height: 17px; }
.dock__txt { flex: 1; min-width: 0; }
.dock__txt b { display: block; font-size: .84rem; line-height: 1.25; }
.dock__txt small { display: block; font-size: .72rem; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 19. Trình phát nhạc ---------- */
.player { position: fixed; left: 22px; bottom: 22px; z-index: 95; }
.player__fab {
  position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--on-primary);
  background: var(--grad); box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 45%, transparent); transition: transform .35s var(--ease);
}
.player__fab:hover { transform: scale(1.08); }
.player__fab .ico { width: 24px; height: 24px; }
.player__fab::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--primary) 50%, transparent);
  transform: scale(calc(1 + var(--beat) * .35)); opacity: 0; transition: opacity .3s;
}
.player.playing .player__fab::after { opacity: 1; }
.player.playing .player__fab .ico { animation: spin 3s linear infinite; }
.eq { position: absolute; bottom: -4px; right: -4px; display: none; gap: 2px; align-items: flex-end; height: 18px; padding: 3px 4px; border-radius: 8px; background: var(--surface-solid); border: 1px solid var(--border); }
.player.playing .eq { display: flex; }
.eq i { width: 3px; background: var(--primary); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 11px; } }
.player__panel {
  position: absolute; left: 0; bottom: 72px; width: 330px; padding: 20px; border-radius: var(--radius-lg);
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--shadow-lg); transform-origin: 0 100%; transform: scale(.85) translateY(10px); opacity: 0; visibility: hidden; transition: .4s var(--ease);
}
.player.open .player__panel { transform: none; opacity: 1; visibility: visible; }
.player__head { display: flex; gap: 14px; align-items: center; }
.player__disc {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: var(--on-primary);
  background: radial-gradient(circle, var(--surface-solid) 16%, transparent 17%), conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary));
}
.player.playing .player__disc { animation: spin 4s linear infinite; }
.player__meta { flex: 1; min-width: 0; }
.player__meta b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__meta span { font-size: .82rem; color: var(--muted); }
.player__viz { width: 100%; height: 46px; margin: 14px 0 6px; display: block; }
.player__progress { position: relative; height: 5px; border-radius: 5px; background: var(--surface-2); cursor: pointer; margin-top: 8px; }
.player__progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 5px; background: var(--grad); }
.player__progress.live i { width: 100%; opacity: .4; background-size: 200% 100%; animation: shift 3s linear infinite; }
.player__time { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 6px; }
.player__controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px 0 6px; }
.player__controls button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: .3s; }
.player__controls button:hover { color: var(--text); background: var(--surface-2); }
.player__controls button.on { color: var(--primary); }
.player__controls .play-main { width: 50px; height: 50px; background: var(--grad); color: var(--on-primary); }
.player__controls .play-main:hover { background: var(--grad); color: var(--on-primary); transform: scale(1.06); }
.player__vol { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.player__vol input { flex: 1; }
.player__list { margin-top: 12px; max-height: 0; overflow: auto; transition: max-height .45s var(--ease); }
.player__list.open { max-height: 200px; }
.player__list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); text-align: left; font-size: .88rem; }
.player__list button:hover { background: var(--surface-2); }
.player__list button.active { color: var(--primary); background: var(--primary-soft); }
.player__list small { margin-left: auto; color: var(--muted); font-size: .72rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 5px; border-radius: 5px; background: var(--surface-2); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: 0 0 0 4px var(--primary-soft); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--primary); cursor: pointer; }

/* ---------- 20. Hộp thoại & thông báo ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 7, 18, .6); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s; }
.modal.open .modal__backdrop { opacity: 1; }
.modal__box {
  position: relative; width: 100%; max-width: 620px; max-height: 88vh; overflow: auto; padding: 36px; border-radius: var(--radius-lg);
  background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: translateY(30px) scale(.96); opacity: 0; transition: .45s var(--ease);
}
.modal.open .modal__box { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 16px; right: 16px; }
.modal__icon { width: 64px; height: 64px; border-radius: var(--radius); display: grid; place-items: center; background: var(--grad); color: var(--on-primary); margin-bottom: 18px; }
.modal__icon .ico { width: 30px; height: 30px; }
.modal h3 { font-size: 1.6rem; }
.modal p { color: var(--muted); }
.modal ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.modal li { display: flex; gap: 10px; align-items: center; }
.modal li .ico { color: #22c55e; }
.modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--border); }
.modal__price { font-size: 1.3rem; font-weight: 800; color: var(--primary); }

.toasts { position: fixed; top: 20px; left: 50%; translate: -50% 0; z-index: 400; display: grid; gap: 10px; width: min(92vw, 380px); }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius); font-size: .92rem; font-weight: 500;
  background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: toastIn .5s var(--ease);
}
.toast .ico { color: var(--primary); }
.toast--ok .ico { color: #22c55e; }
.toast--err .ico { color: #ef4444; }
.toast.out { animation: toastOut .4s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-20px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-20px) scale(.95); } }

/* Hiệu ứng chuyển sáng/tối dạng vòng tròn lan toả */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- 21. Hiệu ứng xuất hiện khi cuộn ---------- */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="fade-up"] .reveal:not(.in) { opacity: 0; transform: translateY(40px); }
[data-reveal="zoom"] .reveal:not(.in) { opacity: 0; transform: scale(.88); }
[data-reveal="slide"] .reveal:not(.in) { opacity: 0; transform: translateX(-60px); }
[data-reveal="slide"] .reveal.r-right:not(.in) { transform: translateX(60px); }
[data-reveal="blur"] .reveal:not(.in) { opacity: 0; filter: blur(12px); transform: translateY(16px); }
[data-reveal="flip"] .reveal:not(.in) { opacity: 0; transform: perspective(800px) rotateX(35deg) translateY(30px); transform-origin: 50% 100%; }

/* Tắt hiệu ứng nếu người dùng yêu cầu */
[data-anim="off"] *, [data-anim="off"] *::before, [data-anim="off"] *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---------- 22. Responsive ---------- */
@media (max-width: 1360px) {
  .fb-2 { right: -3%; } .fb-4 { right: 8%; } .fb-5 { right: 0; } .fb-8 { right: -4%; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .services__grid, .pricing { grid-template-columns: repeat(2, 1fr); }
  .plan--hl { transform: none; } .plan--hl:hover { transform: translateY(-8px); }
}
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .hero__inner, .about__grid, .contact { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__chips { justify-content: center; }
  .hero__visual { min-height: 400px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process::before, .process__line { display: none; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .dock { --tab: 26px; top: auto; bottom: 140px; transform: translateX(var(--dx)); }
  .dock__tab { height: 50px; border-radius: 10px 0 0 10px; }
  .dock--left .dock__tab { border-radius: 0 10px 10px 0; }
  .dock__tab .ico { width: 15px; height: 15px; }
  .dock__panel { width: 204px; padding: 6px; }
  .dock__ico { width: 30px; height: 30px; }
  .dock__ico .ico { width: 15px; height: 15px; }
  .dock__txt b { font-size: .8rem; }
  .scroll-down { display: none; }
  .to-top { right: 14px; bottom: 18px; width: 44px; height: 44px; }
  .player { left: 14px; bottom: 18px; }
  .player__fab { width: 52px; height: 52px; }
  .player__panel { width: calc(100vw - 28px); bottom: 64px; }
  .header__cta { display: none; }
  .services__grid, .pricing, .process, .checklist, .form__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 360px; transform: scale(.85); }
  .orbit { width: 340px; height: 340px; }
  /* Điện thoại khi nhãn bay vòng: thẻ nhỏ lại một chút, nhãn gọn hơn, tối đa 6 nhãn */
  .hero__visual.orbiting { transform: none; min-height: 500px; }
  .hero__visual.orbiting .profile-card { width: 250px; padding: 24px 18px; }
  .hero__visual.orbiting .float-badge { font-size: .72rem; padding: 4px 10px 4px 4px; gap: 6px; }
  .float-badge__ico { width: 22px; height: 22px; }
  .float-badge__ico .ico { width: 13px; height: 13px; }
  .fb-7, .fb-8 { display: none; }
  /* Khi tắt chuyển động: nhãn xếp thành hàng dưới thẻ */
  .hero__visual:not(.orbiting) { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 10px; min-height: 0; padding: 36px 0 8px; transform: none; }
  .hero__visual:not(.orbiting) .profile-card { flex: 0 0 100%; max-width: 300px; margin-bottom: 10px; }
  .hero__visual:not(.orbiting) .orbit { left: 50%; top: 200px; translate: -50% -50%; }
  .hero__visual:not(.orbiting) .float-badge { position: static; }
  .stats { gap: 12px; }
  .stat b { font-size: 1.9rem; }
  .review__card { padding: 32px 22px; }
  .form { padding: 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: 96px; } /* chừa chỗ cho nút nhạc & nút lên đầu trang */
  .announce { padding: 10px 40px 10px 16px; text-align: left; }
  .modal__box { padding: 28px 22px; }
}

/* Chữ "Zalo" trong icon cần to hơn icon nét thường */
.ico--zalo { transform: scale(1.5); }
