/* TRIPHONE - Hiệu ứng dùng chung mọi trang (đi cùng js/fx.js). Chỉ dùng opacity/transform. */

/* Chuyển trang mượt (trình duyệt hỗ trợ View Transitions), đầu trang đứng yên khi chuyển */
@view-transition { navigation: auto; }
.header, .pg-header, .news-topbar { view-transition-name: site-header; }
::view-transition-old(root) { animation: fx-page-out .22s ease both; }
::view-transition-new(root) { animation: fx-page-in .38s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes fx-page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes fx-page-in { from { opacity: 0; transform: translateY(10px); } }

/* Thanh tiến độ đọc */
.fx-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 5000; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, #22c55e, #059669 50%, #0ea5e9); box-shadow: 0 0 10px rgba(16, 185, 129, .55); pointer-events: none; will-change: transform; }

/* Đầu trang các trang con: mờ kính khi cuộn */
.pg-header, .news-topbar { transition: box-shadow .25s ease, background-color .25s ease; }
.pg-header.fx-scrolled, .news-topbar.fx-scrolled { box-shadow: 0 8px 24px rgba(15, 23, 42, .08); background: rgba(255, 255, 255, .88) !important; -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); }

/* Hiện dần khi cuộn tới */
.fx-reveal { opacity: 0; transform: translateY(28px) scale(.985); }
.fx-reveal.fx-in { opacity: 1; transform: none; }

/* Thẻ "nổi lên + viền sáng" theo chuột (không xoay): nhấc lên, bóng đổ lệch theo chuột, viền phát sáng chạy theo, ảnh phóng nhẹ */
.fx-tilting { transform: translateY(-8px) scale(1.015) !important; transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .25s ease !important; box-shadow: var(--fx-sx, 0) var(--fx-sy, 22px) 48px -12px rgba(16, 185, 129, .28), 0 4px 14px rgba(15, 23, 42, .08) !important; will-change: transform; z-index: 2; }
/* Rời chuột: hạ xuống mượt kiểu lò xo */
.fx-tilt-out { transition: transform .55s cubic-bezier(.34, 1.4, .64, 1), box-shadow .4s ease !important; }
.fx-tilting img, .fx-tilt-out img { transition: scale .5s cubic-bezier(.22, 1, .36, 1), translate .3s ease-out; }
.fx-tilting img { scale: 1.05; translate: var(--fx-px, 0) var(--fx-py, 0); }
/* Vệt sáng mềm bên trong thẻ */
.fx-spot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; background: radial-gradient(380px circle at var(--fx-mx, 50%) var(--fx-my, 50%), rgba(16, 185, 129, .1), rgba(14, 165, 233, .05) 40%, transparent 70%); }
/* Viền phát sáng chạy theo chuột */
.fx-ring::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; padding: 2px; background: radial-gradient(240px circle at var(--fx-mx, 50%) var(--fx-my, 50%), #10b981, rgba(14, 165, 233, .6) 40%, transparent 75%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* Nền Aurora (dải cực quang) phía sau các khu "wrap section".
   Không dùng filter blur: dải màu tự mềm bằng gradient, chỉ di chuyển bằng transform (GPU),
   chỉ chạy khi khu đang hiện trên màn hình (js/fx.js gắn .is-live) */
.fx-aurora-host { position: relative; isolation: isolate; }
.fx-aurora { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.fx-aurora i { position: absolute; width: 52vw; height: 62%; border-radius: 50%; opacity: 1; will-change: transform, opacity; animation: fx-aurora-a 16s ease-in-out infinite, fx-aurora-breathe 7s ease-in-out infinite; animation-play-state: paused; }
.fx-aurora.is-live i { animation-play-state: running; }
.fx-aurora i:nth-child(1) { left: -22vw; top: 0; background: radial-gradient(closest-side, rgba(16, 185, 129, .5), rgba(52, 211, 153, .22) 50%, transparent); }
.fx-aurora i:nth-child(2) { right: -22vw; top: 30%; background: radial-gradient(closest-side, rgba(14, 165, 233, .42), rgba(16, 185, 129, .2) 50%, transparent); animation-name: fx-aurora-b, fx-aurora-breathe; animation-duration: 19s, 9s; animation-delay: 0s, -3s; }
.fx-aurora i:nth-child(3) { left: 24vw; bottom: -6%; width: 52vw; height: 40%; background: radial-gradient(closest-side, rgba(167, 139, 250, .18), rgba(167, 139, 250, .06) 50%, transparent); animation-name: fx-aurora-c, fx-aurora-breathe; animation-duration: 17s, 8s; animation-delay: 0s, -5s; }
/* Trôi lượn vòng liên tục (về lại điểm đầu nên không bị giật), nhịp vừa phải để thấy rõ mà vẫn êm */
@keyframes fx-aurora-a { 0%, 100% { transform: translate(0, 0) rotate(-8deg) scale(1); } 25% { transform: translate(8vw, 8%) rotate(-2deg) scale(1.08); } 50% { transform: translate(14vw, -4%) rotate(5deg) scale(1.14); } 75% { transform: translate(5vw, -10%) rotate(-4deg) scale(1.04); } }
@keyframes fx-aurora-b { 0%, 100% { transform: translate(0, 0) rotate(10deg) scale(1.08); } 30% { transform: translate(-9vw, -10%) rotate(2deg) scale(.96); } 60% { transform: translate(-15vw, 6%) rotate(-6deg) scale(1.12); } 80% { transform: translate(-6vw, 10%) rotate(4deg) scale(1); } }
@keyframes fx-aurora-c { 0%, 100% { transform: translate(0, 0) rotate(0) scale(.96); } 35% { transform: translate(-10vw, -16%) rotate(10deg) scale(1.16); } 65% { transform: translate(6vw, -8%) rotate(-6deg) scale(1.05); } }
/* "Thở": sáng lên rồi dịu xuống như cực quang thật */
@keyframes fx-aurora-breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
/* khu xen kẽ: đảo màu cho đỡ lặp lại */
.fx-aurora.alt { transform: scaleX(-1); }
@media (max-width: 768px) {
  .fx-aurora i { width: 90vw; animation-duration: 22s, 9s; }
  .fx-aurora i:nth-child(3) { display: none; }
}

/* Gợn sóng khi bấm */
.fx-ripple-host { position: relative; overflow: hidden; isolation: isolate; }
.fx-ripple { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; background: currentColor; opacity: .18; transform: scale(0); animation: fx-ripple .6s cubic-bezier(.22, 1, .36, 1) forwards; }
@keyframes fx-ripple { to { transform: scale(1); opacity: 0; } }
.btn-primary .fx-ripple, .mcb-book .fx-ripple { background: #fff; opacity: .35; }

/* Nút chính "hút" nhẹ theo chuột */
.btn-primary.btn-lg, .pg-cta, .pc-cta .btn-primary, [data-action="start-booking"].btn-primary { transition: translate .25s cubic-bezier(.22, 1, .36, 1), transform .2s ease, box-shadow .2s ease, background-color .2s ease; }

/* Ảnh tải dần hiện mượt */
.fx-img-wait { opacity: 0; }
img[loading="lazy"] { transition: opacity .5s ease; }

/* Tiêu đề khu vực: gạch chân chuyển màu */
.section-head h2::after, .pc-head h2::after, .pg-section > h2::after { content: ''; display: block; width: 56px; height: 4px; border-radius: 4px; margin: 12px auto 0; background: linear-gradient(90deg, #22c55e, #047857, #22c55e); background-size: 200% 100%; animation: fx-flow 4s linear infinite; }
.pg-section > h2::after { margin-left: 0; }
@keyframes fx-flow { to { background-position: -200% 0; } }

/* Nút đặt lịch: viền sáng chạy quanh để thu hút ánh nhìn */
/* Vòng sáng là lớp .fx-mring (fx.js chèn vào nút): nền hình nón XOAY bằng transform (card đồ hoạ tự chạy, không vẽ lại mỗi khung hình
   như khi đổi góc --fx-angle), lớp phủ cùng màu nút che phần giữa, chỉ chừa viền 2px */
.mcb-book { position: relative; isolation: isolate; }
.mcb-book > :not(.fx-mring):not(.fx-btnfx) { position: relative; z-index: 1; }
.fx-mring { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 0; }
.fx-mring::before { content: ''; position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; background: conic-gradient(transparent 0 70%, rgba(255, 255, 255, .9) 80%, transparent 90%); transform: translate(-50%, -50%); animation: fx-mring-spin 3.2s linear infinite; }
.fx-mring::after { content: ''; position: absolute; inset: 2px; border-radius: 12px; background: linear-gradient(135deg, #10b981, #047857); }
@keyframes fx-mring-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@property --fx-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes fx-spin { to { --fx-angle: 360deg; } }

/* Giảm chuyển động: tắt hết */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .fx-progress, .fx-mring::before { display: none; }
  .section-head h2::after, .pc-head h2::after, .pg-section > h2::after { animation: none; }
  .fx-reveal { opacity: 1; transform: none; filter: none; }
}

/* ===================== Hiệu ứng kết hợp (lớp 2) ===================== */

/* Tiêu đề hiện từng chữ: trồi lên + bỏ mờ + lật nhẹ, nối tiếp nhau */
.fx-words .fx-w { display: inline-block; opacity: 0; transform: translateY(.55em) rotateX(55deg); transform-origin: 50% 100%; }
.fx-words.fx-go .fx-w { animation: fx-word .75s cubic-bezier(.22, 1, .36, 1) forwards; animation-delay: calc(var(--i) * 55ms); }
@keyframes fx-word { to { opacity: 1; transform: none; } }

/* Vùng nổi bật: quầng sáng trôi + đèn rọi theo chuột */
.fx-aura-host { isolation: isolate; }
.fx-aura { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.fx-aura i { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; opacity: .5; will-change: transform; animation-play-state: paused !important; }
/* Chỉ chạy khi khu vực đang hiện trên màn hình (js/fx.js gắn .is-live) */
.fx-aura.is-live i { animation-play-state: running !important; }
.fx-aura i:nth-child(1) { left: -16%; top: -26%; background: radial-gradient(circle, rgba(52, 211, 153, .42), rgba(52, 211, 153, .14) 38%, transparent 68%); animation: fx-drift1 16s ease-in-out infinite alternate; }
.fx-aura i:nth-child(2) { right: -18%; top: 4%; background: radial-gradient(circle, rgba(14, 165, 233, .28), rgba(14, 165, 233, .1) 38%, transparent 68%); animation: fx-drift2 19s ease-in-out infinite alternate; }
.fx-aura i:nth-child(3) { left: 24%; bottom: -42%; background: radial-gradient(circle, rgba(251, 191, 36, .18), rgba(251, 191, 36, .06) 38%, transparent 68%); animation: fx-drift3 22s ease-in-out infinite alternate; }
.bcta .fx-aura i, .featured-article .fx-aura i { opacity: .45; }
.fx-aura::after { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; background: radial-gradient(420px circle at var(--fx-sx, 50%) var(--fx-sy, 50%), rgba(16, 185, 129, .14), transparent 60%); }
.fx-lit > .fx-aura::after { opacity: 1; }
.bcta.fx-lit > .fx-aura::after, .featured-article.fx-lit > .fx-aura::after { background: radial-gradient(420px circle at var(--fx-sx, 50%) var(--fx-sy, 50%), rgba(167, 243, 208, .16), transparent 60%); }
@keyframes fx-drift1 { to { transform: translate(18%, 22%) scale(1.15); } }
@keyframes fx-drift2 { to { transform: translate(-20%, 18%) scale(.9); } }
@keyframes fx-drift3 { to { transform: translate(-16%, -24%) scale(1.2); } }

/* Đốm sáng theo con trỏ (máy tính): to ra khi rê vào nút / thẻ, co lại khi bấm */
.fx-cursor { position: fixed; left: 0; top: 0; z-index: 4999; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; pointer-events: none; opacity: 0; border: 1.5px solid rgba(16, 185, 129, .55); background: radial-gradient(circle, rgba(16, 185, 129, .18), transparent 70%); transition: opacity .3s ease, width .25s ease, height .25s ease, margin .25s ease, background .25s ease, border-color .25s ease; will-change: transform; }
.fx-cursor.is-on { opacity: 1; }
.fx-cursor.is-hot { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: rgba(16, 185, 129, .35); background: radial-gradient(circle, rgba(16, 185, 129, .12), transparent 70%); }
.fx-cursor.is-down { width: 24px; height: 24px; margin: -12px 0 0 -12px; background: rgba(16, 185, 129, .3); }
html.bk-lock .fx-cursor { opacity: 0; }

/* Ảnh trong thẻ phóng nhẹ khi rê chuột (đi cùng thẻ nghiêng 3D) */
.tech-product-card .product-img, .pg-svc-card img, .article-card img, .pg-card img, .bento-img { transition: transform .6s cubic-bezier(.22, 1, .36, 1), translate .2s linear; }
.tech-product-card:hover .product-img, .pg-svc-card:hover img, .article-card:hover img, .pg-card:hover img { transform: scale(1.06); }

/* Điện thoại: chạm vào thẻ thì nhún nhẹ */
@media (hover: none) {
  .tech-product-card, .featured-service-item, .pc-steps > li, .pc-card, .pg-svc-card, .pg-card, .article-card, .service-cat-card, .bento-item { transition: transform .15s ease; }
  .tech-product-card:active, .featured-service-item:active, .pc-steps > li:active, .pc-card:active, .pg-svc-card:active, .pg-card:active, .article-card:active, .service-cat-card:active, .bento-item:active { transform: scale(.975); }
}

/* Viền sáng chạy quanh thẻ đang được rê chuột */
.fx-spot { outline: 1.5px solid transparent; }
.fx-tilting { border-color: rgba(16, 185, 129, .45) !important; }

@media (prefers-reduced-motion: reduce) {
  .fx-words .fx-w { opacity: 1; transform: none; filter: none; animation: none; }
  .fx-aura, .fx-cursor { display: none; }
  .fx-aurora i { animation-duration: 48s, 14s !important; }
}
/* Số giá đang chạy: khung rộng cố định, chữ số đều nhau */
.fx-num { display: inline-block; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ===================== Logo "bóc tách" chuyển động ===================== */
/* Tải trang: nền hiện, thân máy bật lên, khe loa rơi vào chỗ, dấu tích tự vẽ, tia sáng bắn ra.
   Rê chuột: các mảnh tách rời (thân lùi, khe loa bay lên, dấu tích nổi ra trước) rồi ráp lại. */
.lm, .lm * { overflow: visible; }
.lm .lm-phone, .lm .lm-body, .lm .lm-slot, .lm .lm-check, .lm .lm-sp { transform-box: fill-box; transform-origin: 50% 50%; }
.lm .lm-phone { transform-origin: 50% 90%; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.lm .lm-body, .lm .lm-slot, .lm .lm-check { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease; }
.lm .lm-check { stroke-dasharray: 1; stroke-dashoffset: 0; }
html.fx-on .lm .lm-body { animation: lm-body .8s cubic-bezier(.34, 1.56, .64, 1) both; }
html.fx-on .lm .lm-slot { animation: lm-slot .55s .4s cubic-bezier(.34, 1.56, .64, 1) both; }
html.fx-on .lm .lm-check { animation: lm-draw .5s .62s cubic-bezier(.65, 0, .35, 1) both; }
html.fx-on .lm .lm-sp { animation: lm-spark 1s .75s ease-out both; }
.lm .lm-sp:nth-child(1) { --dx: -6px; --dy: -6px; } .lm .lm-sp:nth-child(2) { --dx: 6px; --dy: -5px; }
.lm .lm-sp:nth-child(3) { --dx: 6px; --dy: 6px; } .lm .lm-sp:nth-child(4) { --dx: -6px; --dy: 5px; }
@keyframes lm-body { from { transform: translateY(18px) scale(.55); opacity: 0; } }
@keyframes lm-slot { from { transform: translateY(-16px) scaleX(.2); opacity: 0; } }
@keyframes lm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lm-draw2 { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes lm-spark { 0% { opacity: 0; transform: scale(0); } 30% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); } }
@keyframes lm-spark2 { 0% { opacity: 0; transform: scale(0); } 30% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); } }

/* Rê chuột vào logo (đầu trang / chân trang): bóc tách từng lớp */
a:hover .lm .lm-phone, a:focus-visible .lm .lm-phone { transform: rotate(-9deg) translateY(-1px); }
a:hover .lm .lm-body, a:focus-visible .lm .lm-body { transform: scale(.9) translateY(3px); }
a:hover .lm .lm-slot, a:focus-visible .lm .lm-slot { transform: translateY(-9px) scaleX(1.25); }
a:hover .lm .lm-check, a:focus-visible .lm .lm-check { transform: scale(1.22) translateX(2px); animation: lm-draw2 .5s cubic-bezier(.65, 0, .35, 1) both; }
a:hover .lm .lm-sp, a:focus-visible .lm .lm-sp { animation: lm-spark2 .9s ease-out both; }

/* Nền logo: vệt sáng lướt qua định kỳ + đổi sắc khi rê chuột */
.logo-mark { position: relative; isolation: isolate; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s ease, filter .35s ease; }
.logo-mark::after { content: ''; position: absolute; inset: -20%; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%); transform: translateX(-120%); animation: lm-glint 7s 1.6s ease-in-out infinite; }
@keyframes lm-glint { 0%, 82% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
a:hover .logo-mark { transform: translateY(-2px) rotate(-4deg); box-shadow: 0 10px 22px rgba(4, 120, 87, .4); filter: saturate(1.25) brightness(1.05); }

@media (prefers-reduced-motion: reduce) {
  .lm *, .logo-mark, .logo-mark::after { animation: none !important; transition: none !important; }
  .lm .lm-sp { opacity: 0 !important; }
}

/* ===================== Giải phẫu iPhone 3D ===================== */
.anat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.anat-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: #0f172a; margin: 8px 0 12px; line-height: 1.15; }
.anat-copy h2::after { display: none !important; }
.anat-copy > p { color: #64748b; line-height: 1.7; margin: 0 0 22px; max-width: 520px; }
.anat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: none; }
.anat-item { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; border: 1px solid #e2e8f0; background: #fff; font: inherit; text-align: left; color: #0f172a; cursor: pointer; transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.anat-num { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: .85rem; color: #94a3b8; width: 26px; flex-shrink: 0; transition: color .25s ease; }
.anat-txt { flex: 1; display: grid; gap: 1px; }
.anat-txt strong { font-size: .97rem; }
.anat-txt small { color: #64748b; font-size: .82rem; }
.anat-go { color: #cbd5e1; flex-shrink: 0; transition: transform .3s ease, color .25s ease; }
.anat-item:hover, .anat-item:focus-visible, .anat-item.is-on { transform: translateX(8px); border-color: #6ee7b7; background: linear-gradient(90deg, #ecfdf5, #fff 70%); box-shadow: 0 10px 24px rgba(16, 185, 129, .14); }
.anat-item:hover .anat-num, .anat-item.is-on .anat-num { color: #047857; }
.anat-item:hover .anat-go, .anat-item.is-on .anat-go { color: #047857; transform: translateX(4px); }

.anat-stage { position: relative; aspect-ratio: 9 / 10; border-radius: 32px; overflow: hidden; touch-action: pan-y; background: radial-gradient(120% 90% at 30% 20%, #0b3b2c 0%, #052e22 45%, #020617 100%); box-shadow: 0 30px 80px rgba(2, 44, 34, .35), inset 0 0 0 1px rgba(255, 255, 255, .06); isolation: isolate; }
.anat-stage::before { content: ''; position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: radial-gradient(circle at 50% 55%, #000 25%, transparent 75%); mask-image: radial-gradient(circle at 50% 55%, #000 25%, transparent 75%); }
/* Quầng sáng: dải màu đã mềm sẵn nên bỏ filter blur (blur 40px phải vẽ lại liên tục khi phóng to/thu nhỏ) */
.anat-glow { position: absolute; inset: 10% 5%; z-index: 0; border-radius: 50%; background: radial-gradient(circle, rgba(16, 185, 129, .38), rgba(16, 185, 129, .12) 40%, transparent 70%); animation: anat-pulse 6s ease-in-out infinite; will-change: transform, opacity; }
.anat-stage.is-ready .anat-glow { animation-play-state: paused; }
@keyframes anat-pulse { 50% { transform: scale(1.15); opacity: .7; } }
.anat-poster, .anat-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.anat-poster { object-fit: contain; transition: opacity .6s ease; }
.anat-stage canvas { opacity: 0; transition: opacity .8s ease; }
.anat-stage.is-ready canvas { opacity: 1; }
.anat-stage.is-ready .anat-poster { opacity: 0; }
.anat-hint { position: absolute; left: 50%; bottom: 16px; z-index: 2; transform: translateX(-50%); padding: 8px 14px; border-radius: 100px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: #d1fae5; font-size: .78rem; font-weight: 600; white-space: nowrap; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
@media (max-width: 960px) {
  .anat { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 40px; padding-bottom: 40px; }
  .anat-stage { order: -1; aspect-ratio: 1 / 1; border-radius: 24px; }
  .anat-copy { text-align: left; }
  .anat-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .anat-item { padding: 10px 12px; gap: 8px; }
  .anat-item:hover, .anat-item.is-on { transform: none; }
  .anat-num, .anat-go { display: none; }
  .anat-txt strong { font-size: .88rem; }
  .anat-txt small { font-size: .75rem; }
}
/* trang tổng hợp dịch vụ dùng khung .pg-main */
.pg-main .anat { padding-left: 0; padding-right: 0; }

/* ===================== Video nền quay chậm ===================== */
[data-bg-video] { position: relative; isolation: isolate; }
.fx-bgvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0; transition: opacity 1.6s ease; pointer-events: none; border-radius: inherit; }
.fx-bgvideo.is-on { opacity: var(--bgv-opacity, .5); }
.hero .fx-bgvideo { --bgv-opacity: .32; mix-blend-mode: multiply; }
.bcta .fx-bgvideo { --bgv-opacity: .55; mix-blend-mode: screen; z-index: -1; }
@media (prefers-reduced-motion: reduce) { .fx-bgvideo { display: none; } .anat-glow { animation: none; } }

/* ===================== Bảng giá (#price-table) ===================== */

/* Tab + hàng dòng máy: nền nút đang chọn là 1 viên trượt dùng chung, chạy sang nút được bấm */
.fx-seg { position: relative; isolation: isolate; }
.fx-seg > .fx-thumb { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 100px; pointer-events: none; background: linear-gradient(135deg, #059669, #047857 55%, #065f46); box-shadow: 0 6px 18px rgba(5, 150, 105, .32), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .5s cubic-bezier(.34, 1.36, .5, 1), width .5s cubic-bezier(.34, 1.36, .5, 1), height .3s ease, opacity .2s ease; will-change: transform; overflow: hidden; }
.fx-seg > .fx-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); animation: fx-thumb-shine 3.6s ease-in-out infinite; }
.fx-seg > .fx-thumb.fx-thumb-instant { transition: none; }
@keyframes fx-thumb-shine { 55%, 100% { transform: translateX(120%); } }
.fx-seg > button { position: relative; z-index: 1; }
.fx-seg > button.active { background: transparent !important; border-color: transparent !important; box-shadow: none !important; transition: color .3s ease, border-color .3s ease; }
.calc-tab-btn > span { display: inline-flex; align-items: center; transition: translate .35s cubic-bezier(.22, 1, .36, 1); }
.calc-tab-btn svg { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.calc-tab-btn.active svg { transform: rotate(-12deg) scale(1.15); }

/* Đổi tab: khung mới trượt vào + mở dần từ phía tab được bấm */
.calc-card.fx-swap-l { animation: fx-swap-l .6s cubic-bezier(.22, 1, .36, 1) both; }
.calc-card.fx-swap-r { animation: fx-swap-r .6s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes fx-swap-l { from { opacity: 0; transform: translateX(-36px) scale(.98); clip-path: inset(0 30% 0 0 round 24px); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 24px); } }
@keyframes fx-swap-r { from { opacity: 0; transform: translateX(36px) scale(.98); clip-path: inset(0 0 0 30% round 24px); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 24px); } }

/* Nội dung vẽ lại (model, thẻ giá, hàng bảng) hiện nối tiếp */
.fx-pop { animation: fx-pop .55s cubic-bezier(.22, 1, .36, 1) both !important; animation-delay: calc(var(--fx-i, 0) * 45ms) !important; }
.price-option-card.fx-pop { animation-duration: .7s !important; animation-delay: calc(var(--fx-i, 0) * 90ms) !important; }
@keyframes fx-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
tr.fx-pop { animation-name: fx-row !important; }
@keyframes fx-row { from { opacity: 0; transform: translateX(-12px); } }

/* Nút dòng máy / lỗi: mũi tên chạy, biểu tượng nảy khi chọn */
.calc-model-btn span:last-child { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease; }
.calc-model-btn:hover span:last-child, .calc-model-btn.active span:last-child { transform: translateX(4px); opacity: 1 !important; }
.calc-model-btn.active { position: relative; overflow: hidden; }
.calc-model-btn.active::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(16, 185, 129, .22) 50%, transparent 65%); transform: translateX(-120%); animation: fx-sweep .9s cubic-bezier(.22, 1, .36, 1) forwards; }
@keyframes fx-sweep { to { transform: translateX(120%); } }
.calc-fault-btn .icon { display: inline-flex; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.calc-fault-btn:hover .icon { transform: translateY(-3px) rotate(-8deg); }
.calc-fault-btn.active .icon { animation: fx-icon-pop .6s cubic-bezier(.34, 1.56, .64, 1); color: #047857; }
@keyframes fx-icon-pop { 0% { transform: scale(.6) rotate(-20deg); } 60% { transform: scale(1.25) rotate(6deg); } 100% { transform: none; } }

/* Thẻ giá: thẻ khuyên dùng có viền sáng chạy quanh + nhãn nhấp nháy nhẹ */
.fx-on .price-option-card { position: relative; }
.price-option-card.recommended::before { content: ''; position: absolute; inset: -1.5px; border-radius: inherit; padding: 2px; pointer-events: none; background: conic-gradient(from var(--fx-angle, 0deg), rgba(16, 185, 129, .15) 0 60%, #34d399 75%, #0ea5e9 82%, rgba(16, 185, 129, .15) 92%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: fx-spin 4s linear infinite; }
.price-option-card.recommended .badge-rec { z-index: 2; animation: fx-badge 2.4s ease-in-out infinite; }
@keyframes fx-badge { 50% { box-shadow: 0 0 0 6px rgba(4, 120, 87, 0); transform: translateY(-1px); } 0%, 100% { box-shadow: 0 0 0 0 rgba(4, 120, 87, .35); } }
.btn-book-this { position: relative; overflow: hidden; }
.btn-book-this::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s ease; }
.btn-book-this:hover::after { transform: translateX(120%); }

/* Bảng giá: rê chuột sáng cả hàng lẫn cột, ô giá nổi lên */
.screen-master-table td, .screen-master-table th { transition: background-color .2s ease; }
.screen-master-table[data-fx-col="2"] tr > :nth-child(2), .screen-master-table[data-fx-col="3"] tr > :nth-child(3), .screen-master-table[data-fx-col="4"] tr > :nth-child(4), .screen-master-table[data-fx-col="5"] tr > :nth-child(5), .screen-master-table[data-fx-col="6"] tr > :nth-child(6) { background: rgba(16, 185, 129, .06); }
.screen-master-table tbody tr:hover > td:first-child { box-shadow: inset 3px 0 0 #10b981; }
.screen-master-table tbody tr:hover > td.price-cell-click:hover { background: #d1fae5; }
.price-tag-val, .price-tag-zin { display: inline-block; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.price-cell-click:hover .price-tag-val, .price-cell-click:hover .price-tag-zin { transform: scale(1.08); }

/* Chữ bị con trỏ "kéo": ký tự gần con trỏ dịch về phía con trỏ, đổi màu + phóng nhẹ */
.fx-pull .fx-pw { display: inline-block; white-space: nowrap; }
.fx-pull .fx-ch { display: inline-block; }
.fx-pull { cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .fx-seg > .fx-thumb::after, .price-option-card.recommended::before, .price-option-card.recommended .badge-rec, .calc-fault-btn.active .icon { animation: none; }
}
.fx-pull-flat { background: none !important; -webkit-text-fill-color: currentColor !important; }

/* Bảng giá: phần đầu khu trượt từ hai bên hông vào theo cuộn */
.fx-side { position: relative; isolation: isolate; overflow-x: clip; }
.fx-side .calc-card { position: relative; }

/* ===== Giải phẫu iPhone (theo mẫu): nền sáng, bệ kính, nhãn nổi quanh mô hình, cột cam kết, thanh gợi ý ===== */
.anat { grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); gap: 36px; }
.anat-copy h2 { margin: 22px 0 14px; font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.12; letter-spacing: -.02em; }
.anat-h2b { display: flex; align-items: center; gap: 16px; }
.anat-swoosh { flex-shrink: 1; min-width: 0; max-width: 46%; height: auto; }
.anat-swoosh path { stroke-dasharray: 420; stroke-dashoffset: 420; }
.anat.is-in .anat-swoosh path { animation: ti-draw 1.4s .2s cubic-bezier(.22, 1, .36, 1) forwards; }
.anat-copy > p { font-size: 1.05rem; }
.anat-list { gap: 10px; }
.anat-item { gap: 16px; padding: 12px 16px 12px 18px; border-radius: 18px; border-color: #eef2f7; box-shadow: 0 10px 24px -20px rgba(15, 23, 42, .4); }
.anat-ic { width: 52px; height: 52px; flex-shrink: 0; border-radius: 15px; display: grid; place-items: center; color: #0f172a; background: linear-gradient(135deg, #f0fdf7, #dcfce9); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background .3s, color .3s; }
.anat-ic svg { transition: transform .4s; }
.anat-list li:nth-child(3) .anat-ic, .anat-list li:nth-child(4) .anat-ic { color: #059669; }
.anat-txt strong { font-size: 1.02rem; }
.anat-txt small { font-size: .86rem; }
.anat-go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #334155; border: 1px solid #e2e8f0; background: #fff; }
.anat-item:hover .anat-ic, .anat-item.is-on .anat-ic, .anat-item:focus-visible .anat-ic { color: #fff; background: linear-gradient(135deg, #34d399, #047857); transform: perspective(200px) rotateY(180deg); }
.anat-item:hover .anat-ic svg, .anat-item.is-on .anat-ic svg { transform: scaleX(-1); }
.anat-item:hover .anat-go, .anat-item.is-on .anat-go { color: #fff; background: #10b981; border-color: #10b981; }

.anat-stage { aspect-ratio: auto; height: 680px; overflow: visible; border-radius: 0; box-shadow: none; background: radial-gradient(55% 50% at 45% 48%, rgba(167, 243, 208, .55), rgba(209, 250, 229, .2) 55%, transparent 75%); }
.anat-stage::before { display: none; }
.anat-glow { inset: 6% 10% 14%; background: radial-gradient(circle, rgba(52, 211, 153, .3), rgba(52, 211, 153, .08) 50%, transparent 70%); }
.anat-poster, .anat-stage canvas { inset: 8% 15% 0 -4%; width: 89%; height: 93%; }
.anat-podium { position: absolute; left: 6%; right: 16%; bottom: 40px; height: 120px; z-index: 0; perspective: 600px; }
.anat-podium i { position: absolute; left: 0; right: 0; border-radius: 50%; transform: rotateX(72deg); }
.anat-podium i:nth-child(1) { bottom: 0; height: 100%; background: linear-gradient(180deg, #d1fae5, #a7f3d0); box-shadow: 0 30px 50px -20px rgba(4, 120, 87, .35); }
.anat-podium i:nth-child(2) { bottom: 18px; height: 100%; left: 4%; right: 4%; background: radial-gradient(closest-side, #f0fdf7, #ccf5e2); border: 2px solid rgba(255, 255, 255, .9); }
.anat-podium i:nth-child(3) { bottom: 22px; height: 100%; left: 14%; right: 14%; border: 2px solid rgba(16, 185, 129, .45); animation: anat-podium 3.2s ease-in-out infinite; }
@keyframes anat-podium { 50% { box-shadow: 0 0 30px 6px rgba(16, 185, 129, .35); border-color: rgba(16, 185, 129, .8); } }

.anat-tags { position: absolute; inset: 8% 15% 0 -4%; z-index: 3; pointer-events: none; }
.anat-tag { position: absolute; left: var(--x); top: var(--y); display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border: 1px solid #fff; border-radius: 16px; background: rgba(255, 255, 255, .92); box-shadow: 0 18px 32px -16px rgba(15, 23, 42, .35); font: 700 .9rem Manrope, sans-serif; color: #0f172a; white-space: nowrap; cursor: pointer; pointer-events: auto; animation: anat-tag 5s ease-in-out infinite; transition: transform .3s, box-shadow .3s; }
.anat-tag:nth-child(2) { animation-delay: -1s; }
.anat-tag:nth-child(3) { animation-delay: -2s; }
.anat-tag:nth-child(4) { animation-delay: -3s; }
.anat-tag:nth-child(5) { animation-delay: -4s; }
@keyframes anat-tag { 50% { translate: 0 -6px; } }
.anat-tag > span { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #34d399, #059669); }
.anat-tag > i { position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 5px rgba(52, 211, 153, .25), 0 0 14px #34d399; }
.anat-tag > i::after { content: ''; position: absolute; top: 5px; height: 2px; width: 34px; background: linear-gradient(90deg, rgba(16, 185, 129, .7), rgba(16, 185, 129, .1)); }
.anat-tag.t-r > i { right: -40px; }
.anat-tag.t-r > i::after { right: 12px; }
.anat-tag.t-l > i { left: -40px; }
.anat-tag.t-l > i::after { left: 12px; transform: scaleX(-1); }
.anat-tag:hover, .anat-tag.is-on { transform: scale(1.08); box-shadow: 0 22px 40px -14px rgba(4, 120, 87, .5), 0 0 0 3px #6ee7b7; }
.anat-tag.is-on > i { animation: anat-dot 1s ease-in-out infinite; }
@keyframes anat-dot { 50% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0), 0 0 20px #34d399; } }

.anat-badges { position: absolute; right: 0; top: 2%; z-index: 3; list-style: none; margin: 0; padding: 10px; display: grid; gap: 10px; border-radius: 26px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 30px 50px -30px rgba(15, 23, 42, .3); }
.anat-badges li { width: 122px; padding: 16px 10px; display: grid; justify-items: center; gap: 8px; text-align: center; border-radius: 18px; background: rgba(255, 255, 255, .85); color: #059669; font-size: .84rem; line-height: 1.3; }
.anat-badges li span { color: #0f172a; font-weight: 600; }
.anat-badges li svg { animation: why-pin 3s ease-in-out infinite; }
.anat-badges li:nth-child(2) svg { animation-delay: -2s; }
.anat-badges li:nth-child(3) svg { animation-delay: -4s; }
.anat-hint { bottom: 18px; left: 42%; display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px; background: linear-gradient(135deg, #065f46, #0b3b2c); border: 2px solid #34d399; color: #fff; font-size: .92rem; box-shadow: 0 18px 34px -14px rgba(4, 120, 87, .7); }
.anat-hint b { width: 1px; height: 18px; background: rgba(255, 255, 255, .35); }
.anat-hint svg { animation: anat-hand 2.4s ease-in-out infinite; }
@keyframes anat-hand { 0%, 100% { transform: translateX(0) rotate(0); } 50% { transform: translateX(5px) rotate(10deg); } }
.anat:not(.is-live) .anat-stage *, .anat:not(.is-live) .anat-swoosh * { animation-play-state: paused !important; }

@media (max-width: 1100px) {
  .anat { grid-template-columns: minmax(0, 1fr); }
  .anat-stage { height: 600px; }
}
@media (max-width: 960px) {
  .anat-stage { order: -1; height: 460px; aspect-ratio: auto; border-radius: 0; }
  .anat-badges { display: none; }
  .anat-poster, .anat-stage canvas, .anat-tags { inset: 0 0 10% 0; width: 100%; height: 90%; }
  .anat-podium { left: 8%; right: 8%; bottom: 30px; height: 90px; }
  .anat-hint { left: 50%; padding: 10px 16px; font-size: .8rem; gap: 8px; }
  .anat-tag { padding: 6px 10px 6px 6px; font-size: .74rem; gap: 6px; }
  .anat-tag > span { width: 26px; height: 26px; border-radius: 8px; }
  .anat-tag > span svg { width: 14px; height: 14px; }
  .anat-tag > i { display: none; }
  .anat-h2b { display: inline; }
  .anat-swoosh { display: none; }
  .anat-ic { width: 40px; height: 40px; border-radius: 12px; }
}
@media (max-width: 960px) { .anat-go { display: none; } }
@media (max-width: 640px) { .anat-stage { height: 380px; } .anat-ic { display: none; } }

/* ===== Sao băng trên thẻ / dải xanh đậm (js/fx.js initMeteors) ===== */
.fx-sky-host { isolation: isolate; overflow: hidden; }
.fx-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; border-radius: inherit; }
.fx-meteor { position: absolute; top: var(--t); left: var(--l); width: 160px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(209, 250, 229, .55) 60%, #fff); transform: rotate(-32deg) translateX(0); transform-origin: right center;
  filter: drop-shadow(0 0 6px rgba(167, 243, 208, .9)); animation: fx-meteor 9s cubic-bezier(.4, 0, .2, 1) infinite; animation-delay: var(--d); animation-play-state: paused; }
.fx-meteor::after { content: ''; position: absolute; right: -2px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgba(209, 250, 229, .9); }
@keyframes fx-meteor { 0% { opacity: 0; transform: rotate(-32deg) translateX(-60px); } 3% { opacity: 1; } 14% { opacity: 0; transform: rotate(-32deg) translateX(-520px); } 100% { opacity: 0; transform: rotate(-32deg) translateX(-520px); } }
.fx-star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .2; box-shadow: 0 0 6px rgba(209, 250, 229, .9); animation: fx-twinkle 4s ease-in-out infinite; animation-delay: var(--d); animation-play-state: paused; }
.fx-star:nth-of-type(3n) { width: 2px; height: 2px; }
@keyframes fx-twinkle { 50% { opacity: .95; transform: scale(1.6); } }
.fx-sky.is-live .fx-meteor, .fx-sky.is-live .fx-star { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { .fx-meteor { display: none; } .fx-star { animation: none; opacity: .5; } }

/* ===== Nút xanh (js/fx.js initBtnFx): ánh sáng quét, sao lấp lánh, sao băng nhỏ, viền phát sáng ===== */
.fx-btn-host { isolation: isolate; }
.fx-btnfx { display: block; font-style: normal; position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.fx-sheen { position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, .5) 50%, transparent 80%); transform: skewX(-18deg); animation: fx-sheen 3.8s ease-in-out infinite; animation-delay: var(--fd, 0s); }
@keyframes fx-sheen { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
.fx-bmet { position: absolute; top: 18%; left: 105%; width: 54px; height: 1.5px; border-radius: 2px; background: linear-gradient(90deg, #fff, rgba(209, 250, 229, 0)); box-shadow: 0 0 6px rgba(209, 250, 229, .9); transform: rotate(-20deg); opacity: 0; animation: fx-bmet 6.5s ease-out infinite; animation-delay: calc(var(--fd, 0s) + 1.4s); }
@keyframes fx-bmet { 0%, 70% { left: 105%; opacity: 0; } 72% { opacity: 1; } 84% { left: -30%; top: 70%; opacity: 0; } 100% { left: -30%; opacity: 0; } }
.fx-btnfx b { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0; box-shadow: 0 0 6px 1px rgba(209, 250, 229, .95); animation: fx-bstar 2.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes fx-bstar { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: .95; transform: scale(1.3); } }
.fx-btn-host { transition: box-shadow .35s ease, transform .25s cubic-bezier(.22, 1, .36, 1); }
.fx-btn-host:hover { box-shadow: 0 0 0 4px rgba(16, 185, 129, .18), 0 0 26px 2px rgba(52, 211, 153, .55), 0 18px 36px -14px rgba(4, 120, 87, .75) !important; }
.fx-btn-host:hover .fx-sheen { animation-duration: 1.4s; }
@media (prefers-reduced-motion: reduce) { .fx-sheen, .fx-bmet { display: none; } .fx-btnfx b { animation: none; } }

/* Mã QR Zalo hiện khi rê chuột (js/fx.js initZaloQr) */
.zqr-pop { position: absolute; z-index: 60; bottom: calc(100% + 14px); left: 50%; width: 210px; padding: 16px 16px 14px; display: grid; justify-items: center; gap: 6px; border-radius: 20px; background: #fff; color: #0f172a; text-align: center; font-style: normal;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .45), 0 0 0 1px #dbeafe; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 10px) scale(.92); transform-origin: 50% 100%; transition: opacity .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1), visibility .25s; }
.zqr-pop::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: #fff; transform: rotate(45deg); box-shadow: 1px 1px 0 #dbeafe; }
.zqr-pop img { width: 170px; height: 170px; border-radius: 10px; }
.zqr-pop b { font-size: .92rem; color: #0068ff; }
.zqr-pop small { font-size: .76rem; color: #64748b; font-weight: 500; }
a:hover > .zqr-pop, a:focus-visible > .zqr-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
/* nút Zalo nổi bên phải: mã hiện sang trái */
.zqr-pop.is-left { left: auto; right: calc(100% + 16px); bottom: 50%; transform: translate(10px, 50%) scale(.92); transform-origin: 100% 50%; }
.zqr-pop.is-left::after { left: auto; right: -7px; bottom: 50%; margin: 0 0 -7px; box-shadow: 1px -1px 0 #dbeafe; }
a:hover > .zqr-pop.is-left, a:focus-visible > .zqr-pop.is-left { transform: translate(0, 50%) scale(1); }
