/* =========================================================
   Smartera Demo Hub — LỚP HIỆU ỨNG DÙNG CHUNG
   Áp dụng cho cả trang kho (index.html) lẫn mọi mẫu (template.html).
   Kích hoạt khi body có class .fx-ready (do effects.js thêm) —
   nếu JS tắt, nội dung vẫn hiển thị bình thường.
   ========================================================= */

/* ---- Scroll reveal ---- */
.fx-ready .reveal { opacity: 0; transform: translateY(26px);
  transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.fx-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fx-ready .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- Ảnh: fade-in khi tải xong + zoom nhẹ khi hover ---- */
.t-photo { transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .6s ease; }
.fx-ready .t-photo { opacity: 0; }
.fx-ready .t-photo.ld { opacity: 1; }
.t-item:hover .t-photo,
.t-article:hover .t-photo,
.t-masonry .pf:hover .t-photo,
.tpl:hover .t-photo { transform: scale(1.08); }
.t-about .pic:hover .t-photo,
.t-hero-art:hover .t-photo,
.t-mag-hero:hover .t-photo { transform: scale(1.05); }

/* ---- Nút: nảy nhẹ + đổ bóng khi hover ---- */
.btn { transition: transform .16s ease, box-shadow .22s ease, background .15s ease, opacity .15s ease; }
.btn-c:hover, .btn-w:hover, .btn-o:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15,23,42,.18); }
.btn:active { transform: translateY(0) scale(.98); }

/* ---- Menu: gạch chân trượt ---- */
.t-menu a { position: relative; }
.t-menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  background: var(--c, #1e6bff); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .26s ease; }
.t-menu a:hover::after, .t-menu a.on::after { transform: scaleX(1); }
.nav-menu a { position: relative; }
.nav-menu a:not(.badge-link)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--brand); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .26s ease; }
.nav-menu a:not(.badge-link):hover::after { transform: scaleX(1); }

/* ---- Header: đổ bóng khi cuộn ---- */
.t-header, .site-header { transition: box-shadow .25s ease, background .25s ease; }
.t-header.scrolled, .site-header.scrolled { box-shadow: 0 8px 28px rgba(15,23,42,.10); }

/* ---- Vi tương tác cho các khối ---- */
.t-feat .ic { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.t-feat:hover .ic { transform: translateY(-4px) rotate(-7deg) scale(1.08); }
.t-stat { transition: transform .3s ease; }
.t-stat:hover { transform: translateY(-5px); }
.t-plan { transition: transform .25s ease, box-shadow .25s ease, border-color .2s; }
.t-plan:hover { transform: translateY(-6px); box-shadow: 0 20px 46px rgba(15,23,42,.12); }
.t-count .u { transition: transform .3s ease; }
.t-count .u:hover { transform: translateY(-5px); }
.t-kpi { transition: transform .25s ease, box-shadow .25s ease; }
.t-kpi:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(15,23,42,.1); }
.t-mag-row { transition: transform .2s ease; }
.t-mag-row:hover { transform: translateX(4px); }

/* ---- Thanh tiến trình cuộn ---- */
#fx-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--c, #1e6bff), var(--c-dark, #0b3fb0)); z-index: 300; transition: width .08s linear; }

/* ---- Hero: nổi nhẹ liên tục cho ảnh hero ---- */
@keyframes fxFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.t-hero-art { animation: fxFloat 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .t-hero-art { animation: none; } }

/* ---- Card kho: ảnh + nâng mượt hơn ---- */
.tpl { transition: transform .25s ease, box-shadow .25s ease, border-color .2s; }

/* ---- Hiệu ứng chat AI: typing + pop ---- */
.ai-hide { display: none !important; }
@keyframes aiPop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.ai-pop { animation: aiPop .32s cubic-bezier(.2,.7,.2,1) both; }
.ai-bubble.ai-typing { display: inline-flex; gap: 5px; align-items: center; padding: 16px 16px !important; }
.ai-typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted, #94a3b8); opacity: .45; animation: aiBlink 1s infinite; }
.ai-typing span:nth-child(2) { animation-delay: .18s; }
.ai-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes aiBlink { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
/* các bước trong thẻ Agent hiện so le khi thẻ xuất hiện */
.ai-card.ai-pop .ai-step { animation: aiPop .4s both; }
.ai-card.ai-pop .ai-step:nth-child(2) { animation-delay: .14s; }
.ai-card.ai-pop .ai-step:nth-child(3) { animation-delay: .28s; }
.ai-card.ai-pop .ai-step:nth-child(4) { animation-delay: .42s; }
@media (prefers-reduced-motion: reduce) {
  .ai-pop, .ai-card.ai-pop .ai-step { animation: none; }
}

/* =========================================================
   LỚP "CÔNG NGHỆ / NEON" — hiệu ứng, chữ & logo đặc biệt
   Áp dụng cho mọi trang dùng chung effects.css.
   Màu lấy từ biến --c của từng trang (fallback xanh Smartera).
   ========================================================= */

/* ---------- LOGO ĐẶC BIỆT: glow nhịp + quét sáng khi hover ---------- */
.fx-ready .sm-brand, .fx-ready .brand { position: relative; display: inline-flex; }
@keyframes fxLogoGlow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(26,155,255,.45)); }
  50%      { filter: drop-shadow(0 0 11px rgba(22,197,224,.85)); }
}
.fx-ready .sm-brand img,
.fx-ready .brand .brand-logo { animation: fxLogoGlow 3.4s ease-in-out infinite; will-change: filter; }
.fx-ready .sm-brand:hover img,
.fx-ready .brand:hover .brand-logo {
  animation: none;
  filter: drop-shadow(0 0 16px rgba(22,197,224,1)) brightness(1.12);
}
/* vệt sáng quét qua logo khi hover */
.fx-ready .sm-brand::after, .fx-ready .brand::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.75) 50%, transparent 62%);
  background-size: 240% 100%; background-position: 220% 0; opacity: 0; mix-blend-mode: screen;
}
.fx-ready .sm-brand:hover::after, .fx-ready .brand:hover::after { animation: fxLogoSweep .85s ease; }
@keyframes fxLogoSweep {
  0%   { background-position: 220% 0; opacity: 1; }
  100% { background-position: -40% 0; opacity: 0; }
}
/* logo nội bộ của mẫu (icon emoji + tên) */
.fx-ready .t-brand .ic {
  box-shadow: 0 0 0 1px var(--c-soft, rgba(26,155,255,.2)), 0 0 16px -2px var(--c, #1a9bff);
  animation: fxIcGlow 3.6s ease-in-out infinite;
}
@keyframes fxIcGlow {
  0%, 100% { box-shadow: 0 0 0 1px var(--c-soft, rgba(26,155,255,.2)), 0 0 10px -4px var(--c, #1a9bff); }
  50%      { box-shadow: 0 0 0 1px var(--c-soft, rgba(26,155,255,.2)), 0 0 20px 0   var(--c, #1a9bff); }
}

/* ---------- CHỮ ĐẶC BIỆT: gradient chạy + phát sáng neon ---------- */
@keyframes fxGradShift { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
/* tiêu đề hero nền sáng + chữ .grad ở trang kho: gradient theo màu thương hiệu */
.fx-ready .page-head h1 .grad,
.fx-ready .t-hero:not(.t-hero--center) h1 {
  background: linear-gradient(90deg, var(--c, #1a9bff), var(--c-dark, #16c5e0), var(--c, #1a9bff));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: fxGradShift 4.5s linear infinite;
}
/* tiêu đề hero nền tối/ảnh: chữ trắng phát sáng neon */
.fx-ready .t-hero--center h1,
.fx-ready .t-coming h1 {
  text-shadow: 0 1px 0 rgba(0,0,0,.18), 0 0 20px rgba(255,255,255,.42), 0 0 44px var(--c, #1a9bff);
}
/* nhãn eyebrow phát sáng */
.fx-ready .t-eyebrow {
  box-shadow: 0 0 0 1px var(--c-soft, rgba(26,155,255,.25)), 0 0 18px -3px var(--c, #1a9bff);
}

/* ---------- SÂN KHẤU HERO: lưới chuyển động + quầng sáng + scanline ---------- */
.fx-stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.fx-ready .page-head { position: relative; overflow: hidden; }
.fx-ready .page-head > .container { position: relative; z-index: 2; }
.fx-ready .page-head .fx-stage { z-index: 0; }

.fx-grid {
  position: absolute; inset: -60% -15% -15%;
  background-image:
    linear-gradient(var(--c, #1a9bff) 1px, transparent 1px),
    linear-gradient(90deg, var(--c, #1a9bff) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .13;
  transform: perspective(440px) rotateX(60deg); transform-origin: top center;
  animation: fxGridMove 8s linear infinite;
}
@keyframes fxGridMove { from { background-position: 0 0; } to { background-position: 0 46px; } }

.fx-orb { position: absolute; width: 360px; height: 360px; border-radius: 50%; filter: blur(64px); opacity: .5;
  background: radial-gradient(circle, var(--c, #1a9bff), transparent 70%); }
.fx-orb1 { top: -140px; left: -90px; animation: fxOrb1 15s ease-in-out infinite; }
.fx-orb2 { right: -70px; bottom: -150px; background: radial-gradient(circle, var(--c-dark, #16c5e0), transparent 70%);
  animation: fxOrb2 18s ease-in-out infinite; }
@keyframes fxOrb1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(70px, 46px); } }
@keyframes fxOrb2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-56px, -34px); } }

.fx-scan { position: absolute; left: 0; right: 0; top: -160px; height: 160px; opacity: .55;
  background: linear-gradient(180deg, transparent, var(--c-soft, rgba(26,155,255,.16)), transparent);
  animation: fxScan 6.5s linear infinite; }
@keyframes fxScan { 0% { transform: translateY(0); } 100% { transform: translateY(160vh); } }

/* ---------- VIỀN NEON khi hover card & nút ---------- */
.fx-ready .t-feat:hover { border-color: var(--c, #1a9bff); box-shadow: 0 14px 34px rgba(15,23,42,.10), 0 0 22px -6px var(--c, #1a9bff); }
.fx-ready .t-item:hover, .fx-ready .t-article:hover { box-shadow: 0 16px 40px rgba(15,23,42,.12), 0 0 22px -8px var(--c, #1a9bff); }
.fx-ready .t-plan:hover { box-shadow: 0 20px 46px rgba(15,23,42,.12), 0 0 26px -8px var(--c, #1a9bff); }
.fx-ready .tpl:hover { box-shadow: var(--shadow, 0 16px 44px rgba(0,0,0,.4)), 0 0 26px -8px var(--brand, #1a9bff); }
.fx-ready .btn-c:hover, .fx-ready .badge-link:hover { box-shadow: 0 10px 24px -6px var(--c, var(--brand, #1a9bff)), 0 0 16px -2px var(--c, var(--brand, #1a9bff)); }

/* ---------- Tôn trọng người dùng giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  .fx-ready .sm-brand img, .fx-ready .brand .brand-logo, .fx-ready .t-brand .ic,
  .fx-ready .page-head h1 .grad, .fx-ready .t-hero:not(.t-hero--center) h1,
  .fx-grid, .fx-orb, .fx-scan { animation: none !important; }
  .fx-stage { display: none; }
}

/* =========================================================
   MODULE DEMO DÙNG CHUNG (notify · contact · chat · countdown ·
   register · back-to-top · cookie). Màu lấy từ --c của trang,
   fallback --brand rồi xanh Smartera.
   ========================================================= */
:root, body { --fxc: var(--c, var(--brand, #1a9bff)); }
.fx-dock, .fx-noti-wrap, .fx-chat-panel, .fx-modal, .fx-cookie, .fx-cd {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; box-sizing: border-box;
}
.fx-dock *, .fx-noti-wrap *, .fx-chat-panel *, .fx-modal *, .fx-cookie *, .fx-cd * { box-sizing: border-box; }

/* ---------- Vùng nút nổi góc phải dưới ---------- */
.fx-dock { position: fixed; right: 18px; bottom: 18px; z-index: 140;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
body.fx-navfab .fx-dock { bottom: 74px; }

/* ---------- 1) Thông báo xã hội (social proof) ---------- */
.fx-noti-wrap { position: fixed; left: 18px; bottom: 18px; z-index: 145;
  display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.fx-noti { display: flex; gap: 11px; align-items: flex-start; background: #fff; color: #0f172a;
  border: 1px solid rgba(15,23,42,.08); border-radius: 14px; padding: 12px 13px;
  box-shadow: 0 14px 40px rgba(15,23,42,.18); opacity: 0; transform: translateX(-24px) scale(.96);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1); pointer-events: auto; }
.fx-noti.in { opacity: 1; transform: none; }
.fx-noti-av { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: grid; place-items: center;
  font-size: 20px; background: var(--fxc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fxc) 22%, transparent); }
.fx-noti-b { min-width: 0; line-height: 1.35; }
.fx-noti-t { font-size: 13px; } .fx-noti-t b { color: #0f172a; }
.fx-noti-d { font-size: 13px; color: #334155; font-weight: 600; margin: 1px 0; }
.fx-noti-m { font-size: 11px; color: #16a34a; font-weight: 700; }
.fx-noti-x { position: absolute; }   /* fallback */
.fx-noti { position: relative; }
.fx-noti-x { top: 6px; right: 8px; border: 0; background: transparent; color: #94a3b8; font-size: 18px;
  line-height: 1; cursor: pointer; padding: 2px; }
.fx-noti-x:hover { color: #0f172a; }
@media (max-width: 560px) { .fx-noti-wrap { left: 10px; right: 74px; max-width: none; } }

/* ---------- 2) Liên hệ nổi ---------- */
.fx-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fx-contact-list { display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  max-height: 0; overflow: hidden; opacity: 0; transform: translateY(10px);
  transition: max-height .3s ease, opacity .25s ease, transform .25s ease; }
.fx-contact.open .fx-contact-list { max-height: 320px; opacity: 1; transform: none; }
.fx-cbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px;
  border-radius: 999px; background: #fff; color: #0f172a; font-size: 13px; font-weight: 700;
  text-decoration: none; box-shadow: 0 8px 22px rgba(15,23,42,.16); border: 1px solid rgba(15,23,42,.06);
  transition: transform .16s ease, box-shadow .2s ease; white-space: nowrap; }
.fx-cbtn span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: #fff; }
.fx-cbtn:hover { transform: translateX(-3px); box-shadow: 0 12px 28px rgba(15,23,42,.22); }
.fx-cbtn.zalo span { background: #0068ff; } .fx-cbtn.mess span { background: #0084ff; }
.fx-cbtn.call span { background: #16a34a; } .fx-cbtn.mail span { background: #ef4444; }
.fx-cbtn.tuvan span { background: var(--fxc); } .fx-cbtn.tuvan { font-weight: 800; }
.fx-cmain { position: relative; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--fxc); color: #fff; box-shadow: 0 10px 26px color-mix(in srgb, var(--fxc) 45%, transparent);
  display: grid; place-items: center; transition: transform .2s ease; }
.fx-cmain .ic { font-size: 24px; transition: transform .3s ease; }
.fx-cmain:hover { transform: scale(1.06); }
.fx-contact.open .fx-cmain .ic { transform: rotate(135deg); }
.fx-cmain .rng { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--fxc); animation: fxRing 1.8s ease-out infinite; }
@keyframes fxRing { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- 3) Hộp chat demo ---------- */
.fx-chat-launch { position: relative; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--fxc), color-mix(in srgb, var(--fxc) 60%, #000 18%));
  color: #fff; box-shadow: 0 10px 26px color-mix(in srgb, var(--fxc) 45%, transparent);
  display: grid; place-items: center; transition: transform .2s ease, opacity .2s ease; }
.fx-chat-launch .ic { font-size: 25px; }
.fx-chat-launch:hover { transform: scale(1.06); }
.fx-chat-launch.hide { opacity: 0; transform: scale(.4); pointer-events: none; }
.fx-chat-dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: #22c55e; border: 2px solid #fff; }
.fx-chat-panel { position: fixed; right: 18px; bottom: 84px; z-index: 150; width: 340px; max-width: calc(100vw - 36px);
  height: 460px; max-height: calc(100vh - 120px); background: #fff; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(15,23,42,.3);
  opacity: 0; transform: translateY(20px) scale(.96); pointer-events: none;
  transition: opacity .26s ease, transform .26s cubic-bezier(.2,.8,.2,1); }
body.fx-navfab .fx-chat-panel { bottom: 140px; }
.fx-chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.fx-chat-head { display: flex; align-items: center; gap: 10px; padding: 13px 14px; color: #fff;
  background: linear-gradient(135deg, var(--fxc), color-mix(in srgb, var(--fxc) 60%, #000 20%)); }
.fx-chat-head .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-size: 20px; background: rgba(255,255,255,.2); }
.fx-chat-head .ti { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.fx-chat-head .ti b { font-size: 15px; }
.fx-chat-head .ti .on { font-size: 12px; opacity: .9; }
.fx-chat-close { border: 0; background: rgba(255,255,255,.18); color: #fff; width: 30px; height: 30px;
  border-radius: 50%; font-size: 19px; line-height: 1; cursor: pointer; }
.fx-chat-close:hover { background: rgba(255,255,255,.32); }
.fx-chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 9px;
  background: #f1f5f9; }
.fx-cm { max-width: 80%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45;
  animation: fxCmIn .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fxCmIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fx-cm.bot { align-self: flex-start; background: #fff; color: #0f172a; border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.fx-cm.user { align-self: flex-end; background: var(--fxc); color: #fff; border-bottom-right-radius: 4px; }
.fx-cm-typing { display: inline-flex; gap: 5px; align-items: center; }
.fx-cm-typing span { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: aiBlink 1s infinite; }
.fx-cm-typing span:nth-child(2) { animation-delay: .18s; } .fx-cm-typing span:nth-child(3) { animation-delay: .36s; }
.fx-chat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 12px 0; background: #fff; }
.fx-chat-chips button { border: 1px solid color-mix(in srgb, var(--fxc) 40%, #cbd5e1); background: #fff;
  color: var(--fxc); font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s; }
.fx-chat-chips button:hover { background: var(--fxc); color: #fff; }
.fx-chat-input { display: flex; gap: 8px; padding: 12px; background: #fff; }
.fx-chat-input input { flex: 1; border: 1px solid #e2e8f0; border-radius: 999px; padding: 10px 15px; font-size: 13.5px;
  outline: none; }
.fx-chat-input input:focus { border-color: var(--fxc); }
.fx-chat-send { border: 0; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--fxc);
  color: #fff; font-size: 16px; cursor: pointer; transition: transform .15s; }
.fx-chat-send:hover { transform: scale(1.08); }

/* ---------- 4) Đếm ngược khuyến mãi ---------- */
.fx-cd { background: linear-gradient(90deg, #0f172a, color-mix(in srgb, var(--fxc) 60%, #0f172a)); color: #fff;
  position: relative; z-index: 130; }
.fx-cd-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  justify-content: center; padding: 9px 44px 9px 16px; font-size: 14px; }
.fx-cd-tag { background: #ef4444; color: #fff; font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 999px;
  letter-spacing: .3px; }
.fx-cd-txt { font-weight: 600; }
.fx-cd-clock { display: inline-flex; gap: 4px; align-items: center; font-variant-numeric: tabular-nums; }
.fx-cd-clock b { background: rgba(255,255,255,.16); padding: 3px 7px; border-radius: 6px; font-weight: 800;
  min-width: 30px; text-align: center; }
.fx-cd-cta { background: #fff; color: #0f172a; font-weight: 800; font-size: 13px; padding: 6px 15px;
  border-radius: 999px; text-decoration: none; transition: transform .15s; }
.fx-cd-cta:hover { transform: translateY(-1px); }
.fx-cd-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: transparent;
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer; opacity: .8; }
.fx-cd-x:hover { opacity: 1; }
@media (max-width: 640px) { .fx-cd-txt { width: 100%; text-align: center; } .fx-cd-in { padding-top: 8px; padding-bottom: 8px; } }

/* ---------- 5) Popup đăng ký ---------- */
.fx-modal { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 20px;
  opacity: 0; transition: opacity .3s ease; }
.fx-modal.in { opacity: 1; }
.fx-modal-bd { position: absolute; inset: 0; background: rgba(15,23,42,.62); backdrop-filter: blur(3px); }
.fx-modal-box { position: relative; width: 100%; max-width: 400px; background: #fff; border-radius: 20px;
  padding: 30px 26px 24px; text-align: center; box-shadow: 0 30px 70px rgba(15,23,42,.4);
  transform: translateY(18px) scale(.96); transition: transform .32s cubic-bezier(.2,.8,.2,1); }
.fx-modal.in .fx-modal-box { transform: none; }
.fx-modal-x { position: absolute; top: 12px; right: 14px; border: 0; background: #f1f5f9; width: 32px; height: 32px;
  border-radius: 50%; font-size: 19px; line-height: 1; color: #475569; cursor: pointer; }
.fx-modal-x:hover { background: #e2e8f0; }
.fx-modal-ic { font-size: 46px; line-height: 1; }
.fx-modal-box h3 { margin: 10px 0 6px; font-size: 22px; color: #0f172a; }
.fx-modal-box p { margin: 0 0 18px; font-size: 14px; color: #64748b; line-height: 1.5; }
.fx-modal-form { display: flex; flex-direction: column; gap: 10px; }
.fx-modal-form input { border: 1px solid #e2e8f0; border-radius: 11px; padding: 12px 14px; font-size: 14px; outline: none; }
.fx-modal-form input:focus { border-color: var(--fxc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fxc) 18%, transparent); }
.fx-modal-btn { border: 0; border-radius: 11px; padding: 13px; font-size: 15px; font-weight: 800; color: #fff;
  cursor: pointer; background: linear-gradient(135deg, var(--fxc), color-mix(in srgb, var(--fxc) 60%, #000 18%));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--fxc) 40%, transparent); transition: transform .15s; }
.fx-modal-btn:hover { transform: translateY(-2px); }
.fx-modal-ok { display: none; color: #16a34a; font-weight: 700; font-size: 15px; padding: 14px 0; }
.fx-modal-fine { margin-top: 12px; font-size: 12px; color: #94a3b8; }
.fx-modal.done .fx-modal-form, .fx-modal.done .fx-modal-box p { display: none; }
.fx-modal.done .fx-modal-ok { display: block; }

/* ---------- 6) Nút lên đầu trang ---------- */
.fx-top { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: #fff; color: #0f172a;
  font-size: 20px; font-weight: 800; box-shadow: 0 8px 22px rgba(15,23,42,.18); border: 1px solid rgba(15,23,42,.06);
  opacity: 0; transform: translateY(12px) scale(.8); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .15s, color .15s; }
.fx-top.show { opacity: 1; transform: none; pointer-events: auto; }
.fx-top:hover { background: var(--fxc); color: #fff; }

/* ---------- 7) Thanh cookie ---------- */
.fx-cookie { position: fixed; left: 50%; bottom: 14px; transform: translate(-50%, 130%); z-index: 135;
  display: flex; align-items: center; gap: 14px; background: #0f172a; color: #e2e8f0; font-size: 13px;
  padding: 11px 14px 11px 18px; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.3);
  max-width: calc(100vw - 28px); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.fx-cookie.in { transform: translate(-50%, 0); }
.fx-cookie-ok { border: 0; background: var(--fxc); color: #fff; font-weight: 800; font-size: 13px;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.fx-cookie-ok:hover { filter: brightness(1.08); }
@media (max-width: 480px) { .fx-cookie { left: 10px; right: 10px; transform: translateY(130%); flex-wrap: wrap; }
  .fx-cookie.in { transform: translateY(0); } }

/* ---------- Giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  .fx-cmain .rng { animation: none; display: none; }
  .fx-noti, .fx-chat-panel, .fx-modal-box, .fx-cookie, .fx-cm { transition: none; animation: none; }
}
