/* Trang giới thiệu công khai của phòng khám (src/public-site.js + src/public-home-content.js + src/public-home-promos.js), bản 21.30.
   Điện thoại là chính (một cột), rộng ra thành lưới khi màn lớn. Sáng / tối theo máy người xem. Hiệu ứng chỉ bằng CSS (không style nội tuyến) và tắt hết khi
   người xem chọn "giảm chuyển động". Trang vẫn đọc được đủ khi tắt JavaScript: chỉ khi tệp trang-chu.js chạy mới thêm lớp "js" để ẩn / hiện từng khối. */
:root { color-scheme: light dark; --hbg:#e8f8f1; --hfg:#0a4a3d; --hmut:#2d6b5c; --chip-bg:#fff; --chip-fg:#7a4a00; --chip-bd:rgba(245,163,0,.75); --box-bg:rgba(255,255,255,.78); --box-fg:#0b3d33; --b1:#12a98a; --b2:#f5a300; --bp:rgba(11,107,87,.4); --bpg:rgba(18,169,138,.65); --ecg:#12a98a; --acc:#0b6b57; --bg:#f2faf7; --fg:#14231f; --mut:#4f5f59; --card:#fff; --line:#d7e0dd; --pri:#0b6b57; --pri-fg:#fff; --soft:#e5f3ee; --amber:#f6b93b; --amber-fg:#2d1f00; --deep:#07352c; --ring:rgba(11,107,87,.35); }
@media (prefers-color-scheme: dark) { :root { --hbg:#04241d; --hfg:#fff; --hmut:#b6d8ce; --chip-bg:rgba(246,185,59,.14); --chip-fg:#ffe7a6; --chip-bd:rgba(246,185,59,.6); --box-bg:rgba(255,255,255,.1); --box-fg:#ffe7a6; --b1:#6fe0c3; --b2:#f6b93b; --bp:rgba(255,255,255,.55); --bpg:rgba(111,224,195,.75); --ecg:#5df2b8; --acc:#3fb59a; --bg:#0c1512; --fg:#e8f0ed; --mut:#9bb0a9; --card:#15211c; --line:#2c3d37; --pri:#3fb59a; --pri-fg:#06231c; --soft:#12251f; --deep:#041f19; --ring:rgba(63,181,154,.45); } }
* { box-sizing: border-box; }
body { margin: 0; background-color: var(--bg); color: var(--fg); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; padding-bottom: 72px; }
a { color: var(--pri); }
a:focus-visible, button:focus-visible, summary:focus-visible, [role=button]:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }
.hm-skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 8px; background: var(--amber); color: var(--amber-fg); font-weight: 700; text-decoration: none; }
.hm-skip:focus { top: 8px; }

/* ===== Đầu trang: nền xanh sâu, DNA xoay, tế bào bay, đường điện tim ===== */
.ps-head { position: relative; overflow: hidden; isolation: isolate; color: var(--hfg); text-align: center; padding: 26px 16px 96px; border-radius: 0 0 30px 30px; background-color: var(--hbg);
  background-image: radial-gradient(720px 380px at 92% -12%, rgba(255,214,102,.65), transparent 60%), radial-gradient(660px 360px at -6% 104%, rgba(86,204,232,.42), transparent 62%), radial-gradient(520px 300px at 50% 120%, rgba(120,224,170,.4), transparent 60%), linear-gradient(180deg, #f6fdf9, #daf4ea); }
@media (prefers-color-scheme: dark) { .ps-head { background-image: radial-gradient(900px 420px at 88% -12%, rgba(63,181,154,.38), transparent 60%), radial-gradient(640px 320px at -5% 105%, rgba(246,185,59,.14), transparent 62%), linear-gradient(180deg, #06382e, #04241d); } }
.hm-hero-in { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.hm-hero-in > * { animation: hm-up .8s cubic-bezier(.2,.7,.2,1) both; }
.hm-hero-in > :nth-child(2) { animation-delay: .08s; } .hm-hero-in > :nth-child(3) { animation-delay: .16s; } .hm-hero-in > :nth-child(4) { animation-delay: .24s; }
.hm-hero-in > :nth-child(5) { animation-delay: .32s; } .hm-hero-in > :nth-child(6) { animation-delay: .4s; } .hm-hero-in > :nth-child(7) { animation-delay: .48s; } .hm-hero-in > :nth-child(8) { animation-delay: .56s; } .hm-hero-in > :nth-child(9) { animation-delay: .64s; }
@keyframes hm-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* Logo mặc định là ảnh nền trắng: đặt trên khung trắng bo góc để nhìn có chủ ý ở cả nền sáng lẫn nền tối */
.ps-logo { display: block; width: auto; height: 84px; max-width: 70%; margin: 0 auto 10px; padding: 6px; border-radius: 14px; background: #fff; object-fit: contain; box-shadow: 0 8px 24px rgba(11,107,87,.22); }
.ps-parent { margin: 0 0 4px; color: var(--hmut); font-size: 14px; letter-spacing: .02em; }
.ps-head h1 { margin: 0; font-size: clamp(26px, 6.4vw, 44px); line-height: 1.18; overflow-wrap: anywhere; }
.hm-247 { display: inline-flex; align-items: center; gap: 9px; margin: 14px 0 0; padding: 7px 16px; border: 1px solid var(--chip-bd); border-radius: 999px; background: var(--chip-bg); color: var(--chip-fg); font-weight: 800; box-shadow: 0 4px 14px rgba(245,163,0,.2); letter-spacing: .02em; }
.hm-live { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #18c98f; }
.hm-live::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #18c98f; animation: hm-ping 1.8s ease-out infinite; }
@keyframes hm-ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.hm-slogan { text-wrap: balance; margin: 14px auto 0; max-width: 520px; font-size: clamp(17px, 3.6vw, 22px); line-height: 1.4; font-weight: 700; color: var(--hfg); }
.hm-curious { margin: 16px auto 0; max-width: 560px; min-height: 3.4em; padding: 10px 14px; border-radius: 14px; background: var(--box-bg); color: var(--box-fg); font-size: 15px; line-height: 1.5; backdrop-filter: blur(4px); box-shadow: 0 6px 20px rgba(11,107,87,.1); }
.hm-curious-k { display: inline-block; margin-right: 4px; padding: 1px 9px; border-radius: 999px; background: var(--amber); color: var(--amber-fg); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.hm-curious-t { transition: opacity .35s; }
.hm-curious-t.out { opacity: 0; }
.hm-teasers { display: none; }

.hm-hero-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hm-dna { position: absolute; top: -6px; height: 112%; width: auto; opacity: .34; }
.hm-dna.r { right: -26px; }
.hm-dna.l { display: none; left: -26px; }
.hm-bp { stroke: var(--bp); stroke-width: 2.5; stroke-linecap: round; }
.hm-bp.g { stroke: var(--bpg); }
.hm-b1 { fill: var(--b1); } .hm-b2 { fill: var(--b2); }
.hm-sw { animation: hm-twist 7s ease-in-out infinite; }
@keyframes hm-twist { 0% { transform: scaleX(1); } 25% { transform: scaleX(.04); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(.04); } 100% { transform: scaleX(1); } }
.hm-dna g:nth-child(2) .hm-sw { animation-delay: -.55s; } .hm-dna g:nth-child(3) .hm-sw { animation-delay: -1.1s; } .hm-dna g:nth-child(4) .hm-sw { animation-delay: -1.65s; }
.hm-dna g:nth-child(5) .hm-sw { animation-delay: -2.2s; } .hm-dna g:nth-child(6) .hm-sw { animation-delay: -2.75s; } .hm-dna g:nth-child(7) .hm-sw { animation-delay: -3.3s; }
.hm-dna g:nth-child(8) .hm-sw { animation-delay: -3.85s; } .hm-dna g:nth-child(9) .hm-sw { animation-delay: -4.4s; } .hm-dna g:nth-child(10) .hm-sw { animation-delay: -4.95s; }
.hm-dna g:nth-child(11) .hm-sw { animation-delay: -5.5s; } .hm-dna g:nth-child(12) .hm-sw { animation-delay: -6.05s; } .hm-dna g:nth-child(13) .hm-sw { animation-delay: -6.6s; }
.hm-dna g:nth-child(14) .hm-sw { animation-delay: -7.15s; } .hm-dna g:nth-child(15) .hm-sw { animation-delay: -7.7s; }
.hm-cell { position: absolute; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.9), rgba(18,169,138,.3) 55%, rgba(18,169,138,.06)); box-shadow: 0 0 0 1px rgba(18,169,138,.18); animation: hm-float 15s ease-in-out infinite; }
.hm-cell.c1 { left: 6%; top: 18%; width: 34px; height: 34px; } .hm-cell.c2 { left: 22%; top: 70%; width: 18px; height: 18px; animation-duration: 11s; animation-delay: -3s; }
.hm-cell.c3 { left: 40%; top: 12%; width: 14px; height: 14px; animation-duration: 13s; animation-delay: -6s; } .hm-cell.c4 { left: 64%; top: 64%; width: 26px; height: 26px; animation-duration: 17s; animation-delay: -2s; }
.hm-cell.c5 { left: 78%; top: 20%; width: 20px; height: 20px; animation-duration: 12s; animation-delay: -8s; } .hm-cell.c6 { left: 90%; top: 58%; width: 38px; height: 38px; animation-duration: 18s; animation-delay: -5s; }
.hm-cell.c7 { left: 52%; top: 80%; width: 12px; height: 12px; animation-duration: 10s; animation-delay: -1s; } .hm-cell.c8 { left: 12%; top: 46%; width: 10px; height: 10px; animation-duration: 14s; animation-delay: -9s; }
@keyframes hm-float { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(14px, -26px); } 66% { transform: translate(-10px, -12px); } }
.hm-ecg { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 1; width: 100%; height: 44px; pointer-events: none; opacity: .9; filter: drop-shadow(0 0 5px rgba(18,169,138,.55)); }
.hm-ecg path { fill: none; stroke: var(--ecg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: hm-ecg 3.4s linear infinite; }
@keyframes hm-ecg { 0% { stroke-dashoffset: 100; } 70%, 100% { stroke-dashoffset: 0; } }

/* ===== Bố cục chung ===== */
.ps { max-width: 1040px; margin: 0 auto; padding: 0 16px 28px; }
.hm-top { display: grid; gap: 14px; margin-top: -58px; position: relative; z-index: 3; }
.ps-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 12px 34px rgba(7,53,44,.12); }
.ps-card h2 { font-size: 17px; margin: 0 0 4px; }
.ps-info { display: grid; gap: 10px; margin: 0; }
.ps-info dt { color: var(--mut); font-size: 13px; }
.ps-info dd { margin: 0; overflow-wrap: anywhere; }
.ps-info a { color: var(--pri); font-weight: 600; }
.hm-247r dd { display: inline-block; padding: 1px 12px; border-radius: 999px; background: var(--soft); color: var(--pri); font-weight: 800; letter-spacing: .04em; }
.ps-actions { display: grid; gap: 10px; margin-top: 12px; }
.ps-btn { position: relative; display: block; padding: 13px 16px; border: 1px solid var(--pri); border-radius: 12px; background-color: var(--pri); background-image: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,0) 55%); color: var(--pri-fg); font-weight: 700; text-align: center; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.ps-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11,107,87,.28); }
.ps-btn.ghost { background-color: transparent; background-image: none; color: var(--pri); }
.ps-btn.hot { border-color: var(--amber); background-color: var(--amber); background-image: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,0) 55%); color: var(--amber-fg); animation: hm-glow 2.6s ease-in-out infinite; }
@keyframes hm-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(246,185,59,.55); } 50% { box-shadow: 0 0 0 9px rgba(246,185,59,0); } }
.ps-btn small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; }
.ps-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ps-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--pri); font-weight: 600; text-decoration: none; transition: background .18s; }
.ps-link:hover { background: var(--soft); }
.hm-more { margin-top: 34px; }

.hm-sec { margin-top: 46px; }
.hm-sec > h2 { text-wrap: balance; margin: 0 0 6px; text-align: center; font-size: clamp(22px, 5vw, 30px); line-height: 1.22; }
.hm-sec > h2::after { content: ""; display: block; width: 54px; height: 4px; margin: 10px auto 0; border-radius: 4px; background: linear-gradient(90deg, var(--pri), var(--amber)); }
.hm-sub { max-width: 560px; margin: 8px auto 22px; text-align: center; color: var(--mut); }
.hm-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.hm-grid2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Hiện dần khi cuộn tới (chỉ khi JavaScript chạy; tắt JavaScript thì mọi khối hiện sẵn) */
.js .hm-rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .hm-rv.in { opacity: 1; transform: none; }
.js .hm-grid > .hm-rv:nth-child(2), .js .hm-steps > .hm-rv:nth-child(2) { transition-delay: .08s; }
.js .hm-grid > .hm-rv:nth-child(3), .js .hm-steps > .hm-rv:nth-child(3) { transition-delay: .16s; }
.js .hm-grid > .hm-rv:nth-child(4), .js .hm-steps > .hm-rv:nth-child(4) { transition-delay: .24s; }

/* ===== Ưu đãi từ các đơn vị đồng hành (vé khuyến mãi) ===== */
.hm-promo-wrap { position: relative; }
.hm-promo-track { display: flex; gap: 16px; overflow-x: auto; padding: 8px 8px 30px; margin: 0 -8px; scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.hm-promo { position: relative; flex: 0 0 min(300px, 82%); scroll-snap-align: center; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: 20px; color: #fff; background-color: #0b6b57; box-shadow: 0 14px 30px rgba(7,53,44,.25); transition: transform .25s, box-shadow .25s; }
.hm-promo:hover, .hm-promo:focus-within { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 22px 42px rgba(7,53,44,.34); }
.hm-promo::before { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-18deg); animation: hm-shine 5.5s ease-in-out infinite; pointer-events: none; }
@keyframes hm-shine { 0%, 55% { left: -60%; } 100% { left: 140%; } }
.hm-promo::after { content: ""; position: absolute; right: -34px; bottom: -34px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.12); pointer-events: none; }
.hm-th-NGOC { background-color: #0b6b57; background-image: linear-gradient(150deg, #128a70, #07493d); }
.hm-th-BIEN { background-color: #1565c0; background-image: linear-gradient(150deg, #1e88e5, #0d3f82); }
.hm-th-HONG { background-color: #c2185b; background-image: linear-gradient(150deg, #e0306f, #7d0f3a); }
.hm-th-TIM { background-color: #5e35b1; background-image: linear-gradient(150deg, #7a4fd0, #371b6e); }
.hm-th-DO { background-color: #b71c1c; background-image: linear-gradient(150deg, #d6342f, #6e0f0f); }
.hm-th-LA { background-color: #2e7d32; background-image: linear-gradient(150deg, #43a047, #1a4a1d); }
.hm-th-CAM { background-color: #bf4300; background-image: linear-gradient(150deg, #e65f10, #7a2b00); }
.hm-th-DEN { background-color: #262626; background-image: linear-gradient(150deg, #3d3d3d, #0d0d0d); }
.hm-promo-ribbon { position: absolute; top: 14px; right: -34px; width: 120px; padding: 3px 0; transform: rotate(40deg); background: var(--amber); color: var(--amber-fg); text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hm-promo-by { display: flex; align-items: center; gap: 10px; padding-right: 36px; }
.hm-promo-by p { margin: 0; font-size: 12px; opacity: .85; }
.hm-promo-by h3 { margin: 0; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.hm-pl { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background: #fff; object-fit: contain; }
.hm-pl-i { display: grid; place-items: center; color: #07352c; font-weight: 800; font-size: 18px; }
.hm-promo-tag { margin: 0; font-size: 13px; font-style: italic; opacity: .92; }
.hm-promo-head { margin: 6px 0 0; font-size: clamp(26px, 7vw, 32px); line-height: 1.1; font-weight: 900; color: #ffe08a; text-shadow: 0 2px 12px rgba(0,0,0,.3); animation: hm-pop 2.8s ease-in-out infinite; transform-origin: left center; }
@keyframes hm-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.hm-promo-title { margin: 0; font-weight: 700; }
.hm-promo-detail { margin: 0; font-size: 14px; opacity: .95; }
.hm-promo-ben { margin: 2px 0 0; padding-left: 18px; font-size: 14px; }
.hm-promo-when { margin: 6px 0 0; font-size: 13px; opacity: .95; }
.hm-soon { display: inline-block; margin-left: 4px; padding: 1px 9px; border-radius: 999px; background: #fff; color: #9a1b1b; font-size: 12px; animation: hm-glow 1.6s ease-in-out infinite; }
.hm-promo-go { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; margin-top: auto; padding: 0 14px; border-radius: 12px; background: #fff; color: #07352c; font-weight: 800; text-decoration: none; }
.hm-promo-go::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hm-promo-web { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid rgba(255,255,255,.55); border-radius: 12px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.hm-promo-web:hover { background: rgba(255,255,255,.16); }
.hm-promo a:focus-visible { outline-color: #fff; }
.hm-promo-nav { display: none; }
.js .hm-promo-nav { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.hm-nav-btn { min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--pri); font-size: 22px; font-weight: 700; cursor: pointer; transition: background .18s, transform .18s; }
.hm-nav-btn:hover { background: var(--soft); transform: scale(1.06); }

/* ===== Thẻ "chạm để khám phá" ===== */
.hm-fact { position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 8px 22px rgba(7,53,44,.08); transition: transform .22s, box-shadow .22s, border-color .22s; }
.hm-fact::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 5px; background: var(--acc); }
.hm-grid > :nth-child(2), .hm-steps > :nth-child(2) { --acc: #c25e00; } .hm-grid > :nth-child(3), .hm-steps > :nth-child(3) { --acc: #1565c0; } .hm-grid > :nth-child(4), .hm-steps > :nth-child(4) { --acc: #c2185b; }
@media (prefers-color-scheme: dark) { .hm-grid > :nth-child(2), .hm-steps > :nth-child(2) { --acc: #f0a04b; } .hm-grid > :nth-child(3), .hm-steps > :nth-child(3) { --acc: #6cb4ff; } .hm-grid > :nth-child(4), .hm-steps > :nth-child(4) { --acc: #ff7aa8; } }
.hm-fact-n { margin: 6px 0 4px; color: var(--acc); font-size: clamp(34px, 9vw, 44px); line-height: 1; font-weight: 900; }
.hm-fact-n small { margin-left: 6px; font-size: 16px; font-weight: 700; color: var(--mut); }
.hm-fact-q { margin: 0 0 6px; font-size: 16px; line-height: 1.4; }
.hm-fact-a { margin: 0; color: var(--mut); font-size: 15px; }
.js .hm-fact { cursor: pointer; }
.js .hm-fact:hover { transform: translateY(-4px); border-color: var(--pri); }
.js .hm-fact .hm-fact-a { display: none; }
.js .hm-fact.open .hm-fact-a { display: block; animation: hm-up .4s both; }
.js .hm-fact::after { content: "Chạm để xem câu trả lời ›"; display: block; margin-top: 8px; color: var(--acc); font-size: 14px; font-weight: 700; }
.js .hm-fact.open::after { content: "Thu gọn ˄"; }

/* ===== Hành trình xét nghiệm ===== */
.hm-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.hm-step { position: relative; padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--acc); box-shadow: 0 8px 22px rgba(7,53,44,.07); }
.hm-step h3 { margin: 12px 0 4px; font-size: 17px; }
.hm-step p { margin: 0; color: var(--mut); font-size: 15px; }
.hm-step-n { position: relative; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--acc); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.hm-step-n .hm-ico { width: 28px; height: 28px; }
.hm-step-n b { position: absolute; right: -8px; top: -8px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: var(--amber-fg); font-size: 13px; }
.hm-step:hover .hm-step-n { animation: hm-wiggle .6s; }
@keyframes hm-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }

/* ===== Hiểu để bớt lo (mở / gập bằng thẻ details, không cần JavaScript) ===== */
.hm-qa-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.hm-qa { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.hm-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.hm-qa summary::-webkit-details-marker { display: none; }
.hm-qa summary::after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--pri); font-size: 20px; font-weight: 700; transition: transform .25s; }
.hm-qa[open] summary::after { content: "–"; transform: rotate(180deg); }
.hm-qa[open] { border-color: var(--pri); }
.hm-qa p { margin: 0; padding: 0 16px 16px; color: var(--mut); animation: hm-up .35s both; }

/* ===== Y đức ===== */
.hm-pr { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.hm-pr-i { flex: 0 0 auto; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--soft); color: var(--pri); }
.hm-pr-i .hm-ico { width: 26px; height: 26px; }
.hm-pr h3 { margin: 0 0 4px; font-size: 17px; }
.hm-pr p { margin: 0; color: var(--mut); font-size: 15px; }
.hm-oath { margin: 22px auto 0; max-width: 700px; padding: 18px 20px; border-left: 5px solid var(--amber); border-radius: 0 16px 16px 0; background: var(--soft); font-family: "Times New Roman", Times, serif; }
.hm-oath p { margin: 0; font-size: clamp(18px, 4vw, 22px); line-height: 1.5; font-style: italic; }
.hm-oath footer { margin-top: 8px; color: var(--mut); font: 14px/1.4 system-ui, sans-serif; }

/* ===== Lời hay ý đẹp ===== */
.hm-qbox { position: relative; max-width: 760px; margin: 18px auto 0; padding: 30px 22px 26px; border-radius: 22px; color: #fff; text-align: center; overflow: hidden; background-color: #0a7d6a; background-image: radial-gradient(520px 240px at 100% 0, rgba(255,214,102,.38), transparent 60%), linear-gradient(135deg, #0a7d6a, #0b6b86); box-shadow: 0 16px 40px rgba(10,125,106,.3); }
.hm-qbox::before { content: "“"; position: absolute; left: 14px; top: -14px; font: 130px/1 Georgia, serif; color: rgba(246,185,59,.35); }
.hm-q { margin: 0; padding: 4px 0 8px; }
.hm-q + .hm-q { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.hm-q blockquote { margin: 0; }
.hm-q p { margin: 0; font: italic clamp(20px, 4.6vw, 28px)/1.4 "Times New Roman", Times, serif; color: #fff; }
.hm-q figcaption { margin-top: 10px; color: #fff0b8; font-size: 14px; }
.js .hm-q { display: none; }
.js .hm-q.on { display: block; animation: hm-up .7s both; }
.js .hm-q + .hm-q { margin-top: 0; padding-top: 4px; border-top: 0; }
.hm-qdots { display: none; }
.js .hm-qdots { display: flex; justify-content: center; gap: 2px; margin-top: 12px; }
.hm-qdot { width: 32px; min-height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.hm-qdot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(255,255,255,.4); transition: transform .25s, background .25s; }
.hm-qdot.on::before { background: var(--amber); transform: scale(1.4); }

/* ===== Chân trang ===== */
.ps-foot { margin-top: 30px; padding: 22px 16px 26px; background-color: var(--deep); color: #b9d3cb; font-size: 13px; text-align: center; }
.ps-foot p { max-width: 640px; margin: 4px auto; }
.ps-foot a { display: inline-block; padding: 13px 8px; color: #b9d3cb; }
.ps-foot b { color: #fff; }
.hm-disc { margin-top: 10px; }

/* ===== Thanh thao tác nhanh trên điện thoại + nút nhạc ===== */
.hm-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(7,53,44,.14); }
.hm-dock-a { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--pri); border-radius: 12px; color: var(--pri); font-weight: 800; text-decoration: none; }
.hm-dock-a.hot { border-color: var(--amber); background: var(--amber); color: var(--amber-fg); }
.hm-music { position: relative; display: none; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px 0 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: #0b3d33; color: #fff; font: 700 14px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.js .hm-music { display: inline-flex; }
.hm-music:not(.on) .hm-eq { animation: hm-glow 2.6s ease-in-out infinite; }
.hm-eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 18px; height: 16px; border-radius: 4px; }
.hm-eq i { flex: 1; height: 30%; border-radius: 2px; background: #5df2b8; }
.hm-music.on .hm-eq i { animation: hm-bar 1s ease-in-out infinite; }
.hm-music.on .hm-eq i:nth-child(2) { animation-delay: -.3s; } .hm-music.on .hm-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes hm-bar { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.hm-music.on { background: var(--amber); color: var(--amber-fg); border-color: var(--amber); }
.hm-music.on .hm-eq i { background: var(--amber-fg); }

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .hm-dock { display: none; }
  .hm-music-box { bottom: 20px; }
  .ps-head { padding: 44px 24px 112px; }
  .hm-dna { opacity: .5; } .hm-dna.r { right: 5%; } .hm-dna.l { display: block; left: 5%; transform: scaleX(-1); }
  .hm-top { max-width: 860px; margin-left: auto; margin-right: auto; }
  .hm-promo { flex-basis: 320px; }
}
@media (min-width: 1000px) { .hm-dna { height: 120%; } }
@media (hover: none) { .ps-btn:hover, .hm-promo:hover, .js .hm-fact:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hm-rv { opacity: 1; transform: none; }
  .hm-ecg path { stroke-dashoffset: 0; }
}
@media print { body { background: #fff; color: #000; padding: 0; } .hm-dock, .hm-music-box, .hm-hero-art, .hm-ecg, .hm-promo-nav { display: none !important; } .ps-head { background: #fff; color: #000; } .ps-head h1, .ps-parent { color: #000; text-shadow: none; } .ps-btn { border-color: #000; background: none; color: #000; } .js .hm-rv { opacity: 1; transform: none; } }

/* ===== Bố cục theo dải màu (tươi sáng, mỗi mục một nền) + thanh đi nhanh ===== */
:root { --band-sun:#fff6de; --band-mint:#eafaf3; --band-sky:#e6f4fd; }
@media (prefers-color-scheme: dark) { :root { --band-sun:#2b2511; --band-mint:#10251e; --band-sky:#0f2231; } }
.hm-in { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.hm-band { padding: 46px 0; background-color: var(--bg); }
.hm-band.b-top { padding: 0 0 8px; }
.hm-band.b-sun { background-color: var(--band-sun); background-image: radial-gradient(520px 240px at 100% 0, rgba(255,196,64,.38), transparent 65%), radial-gradient(440px 240px at 0 100%, rgba(255,120,150,.18), transparent 65%); }
.hm-band.b-mint { background-color: var(--band-mint); }
.hm-band.b-sky { background-color: var(--band-sky); }
.hm-band.b-chat { background-color: var(--band-mint); background-image: radial-gradient(520px 260px at 0 0, rgba(86,204,232,.34), transparent 62%), radial-gradient(520px 260px at 100% 100%, rgba(255,214,102,.32), transparent 62%); }
.hm-sec { margin-top: 0; scroll-margin-top: 72px; }
.ps-foot { margin-top: 0; }
.hm-chips { display: flex; gap: 8px; overflow-x: auto; padding: 16px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hm-chips::-webkit-scrollbar { display: none; }
.hm-chips a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--pri); font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 12px rgba(7,53,44,.07); transition: transform .18s, background .18s; }
.hm-chips a:hover { background: var(--soft); transform: translateY(-2px); }
@media (min-width: 720px) { .hm-chips { justify-content: center; flex-wrap: wrap; overflow: visible; } }
.hm-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Khu vực quay thưởng ưu đãi (chỉ hiện khi có JavaScript) ===== */
.hm-wheel-zone { display: none; }
.js .hm-wheel-zone { display: grid; gap: 22px; align-items: center; justify-items: center; grid-template-columns: 1fr; text-align: center; max-width: 860px; margin: 0 auto 28px; padding: 24px 20px; border: 1px solid var(--line); border-radius: 28px; background-color: var(--card); background-image: radial-gradient(420px 220px at 100% 0, rgba(255,214,102,.38), transparent 60%), radial-gradient(360px 200px at 0 100%, rgba(86,204,232,.22), transparent 60%); box-shadow: 0 18px 44px rgba(7,53,44,.14); }
@media (min-width: 720px) { .js .hm-wheel-zone { grid-template-columns: minmax(0, 320px) 1fr; text-align: left; justify-items: stretch; } }
.hm-wheel-box { position: relative; width: min(300px, 76vw); margin: 0 auto; }
.hm-wheel { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 22px rgba(7,53,44,.28)); }
.hm-wheel-rim { fill: #fff; stroke: #f6b93b; stroke-width: 4; }
.hm-ws { stroke: #fff; stroke-width: 1.6; }
.hm-ws-NGOC { fill: #0f9d84; } .hm-ws-BIEN { fill: #1e88e5; } .hm-ws-HONG { fill: #e0306f; } .hm-ws-TIM { fill: #7a4fd0; } .hm-ws-DO { fill: #d6342f; } .hm-ws-LA { fill: #43a047; } .hm-ws-CAM { fill: #f57c00; } .hm-ws-DEN { fill: #455a64; }
.hm-wt { fill: #fff; font: 800 13px system-ui, sans-serif; paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: 2px; }
.hm-hub { fill: #fff; stroke: #f6b93b; stroke-width: 4; }
.hm-wheel-ptr { position: absolute; left: 50%; top: -8px; z-index: 2; width: 0; height: 0; margin-left: -14px; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 28px solid #e0306f; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.hm-wheel-side h3 { margin: 0 0 6px; font-size: clamp(21px, 4.6vw, 28px); line-height: 1.2; }
.hm-wheel-side p { margin: 0 0 12px; color: var(--mut); }
.hm-spin { min-height: 56px; padding: 0 34px; border: 0; border-radius: 999px; background-color: var(--amber); background-image: linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,0) 55%); color: var(--amber-fg); font: 900 18px/1 system-ui, sans-serif; letter-spacing: .03em; cursor: pointer; box-shadow: 0 10px 22px rgba(245,163,0,.42); animation: hm-glow 2.2s ease-in-out infinite; }
.hm-spin:disabled { opacity: .75; cursor: progress; animation: none; }
.hm-wheel-side .hm-wheel-res { min-height: 3em; margin-top: 12px; color: var(--fg); font-weight: 700; }
.hm-wheel-res a { color: var(--pri); }
/* Liên kết sau khi quay là hành động chính: nút đầy chiều ngang, cao >= 48 px cho ngón tay (không phải chữ nhỏ trong dòng) */
.hm-wheel-res .hm-res-go { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 10px; padding: 8px 18px; border-radius: 12px; background-color: var(--pri); color: var(--pri-fg); font-weight: 800; text-align: center; text-decoration: none; }
.hm-wheel-note { font-size: 14.5px; line-height: 1.5; }
.hm-promo.hit { outline: 4px solid var(--amber); outline-offset: 4px; animation: hm-hit 1.1s ease-in-out 3; }
@keyframes hm-hit { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px) scale(1.02); } }
.hm-conf { position: absolute; left: 50%; top: 50%; z-index: 3; width: 9px; height: 14px; margin: -7px 0 0 -4px; border-radius: 2px; pointer-events: none; animation: hm-conf 1.4s ease-out forwards; }
.hm-conf.k1 { background: #f6b93b; --dx: -150px; --dy: -150px; --rt: 240deg; } .hm-conf.k2 { background: #e0306f; --dx: 140px; --dy: -170px; --rt: -200deg; }
.hm-conf.k3 { background: #1e88e5; --dx: -60px; --dy: -190px; --rt: 300deg; } .hm-conf.k4 { background: #43a047; --dx: 90px; --dy: -120px; --rt: -260deg; }
.hm-conf.k5 { background: #7a4fd0; --dx: -180px; --dy: -60px; --rt: 180deg; } .hm-conf.k6 { background: #f57c00; --dx: 190px; --dy: -50px; --rt: -160deg; }
.hm-conf.k7 { background: #0f9d84; --dx: -110px; --dy: 40px; --rt: 220deg; } .hm-conf.k8 { background: #ffd54f; --dx: 120px; --dy: 60px; --rt: -240deg; }
@keyframes hm-conf { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rt)); } }

/* ===== Hỏi đáp cùng Bác sĩ AI ===== */
.hm-chat-card { max-width: 760px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--card); box-shadow: 0 20px 48px rgba(7,53,44,.16); }
.hm-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; background-color: #0a7d6a; background-image: linear-gradient(135deg, #0a7d6a, #0b6b86); }
.hm-bot { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; background: #fff; animation: hm-bob 3.2s ease-in-out infinite; }
@keyframes hm-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.hm-bot-coat { fill: #e8fff6; stroke: #0a7d6a; stroke-width: 1.5; } .hm-bot-head { fill: #fff3e0; stroke: #0a7d6a; stroke-width: 1.8; } .hm-bot-cap { fill: #0fa88b; } .hm-bot-cross { fill: #fff; }
.hm-bot-steth { stroke: #0b6b86; stroke-width: 2.2; stroke-linecap: round; } .hm-bot-tip { fill: #f6b93b; } .hm-smile { stroke: #0a3d33; stroke-width: 2; stroke-linecap: round; }
.hm-eye { fill: #0a3d33; transform-box: fill-box; transform-origin: center; animation: hm-blink 4.5s infinite; }
@keyframes hm-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.hm-chat-who { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.hm-chat-who b { font-size: 17px; }
.hm-chat-state { display: inline-flex; align-items: center; gap: 8px; color: #d6fff1; font-size: 13px; }
.hm-chat-badge { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 12px; font-weight: 700; }
.hm-chat-log { display: flex; flex-direction: column; gap: 10px; min-height: 170px; max-height: 440px; overflow-y: auto; padding: 16px; background-color: var(--soft); }
.hm-msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; line-height: 1.5; overflow-wrap: anywhere; animation: hm-up .35s both; }
.hm-msg p { margin: 0; white-space: pre-line; }
.hm-msg.bot { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 6px; background: var(--card); }
.hm-msg.me { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--pri); color: var(--pri-fg); }
.hm-msg.urgent { border-color: #d6342f; background: #fff1f0; color: #7a1410; }
@media (prefers-color-scheme: dark) { .hm-msg.urgent { background: #3a1613; color: #ffd6d2; } }
.hm-typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.hm-typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--pri); animation: hm-dot 1s infinite; }
.hm-typing i:nth-child(2) { animation-delay: .15s; } .hm-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hm-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.hm-sug { display: grid; align-self: stretch; gap: 10px; margin-top: 2px; }
.hm-sug h4 { margin: 0; color: var(--mut); font-size: 14px; }
.hm-sug-card { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-left: 5px solid var(--pri); border-radius: 16px; background: var(--card); animation: hm-up .4s both; }
.hm-sug-card.clinic { border-left-color: var(--amber); }
.hm-sug-card b { overflow-wrap: anywhere; } .hm-sug-card span { color: var(--mut); font-size: 14px; }
.hm-sug-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.hm-sug-act a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--pri); border-radius: 12px; color: var(--pri); font-size: 14px; font-weight: 700; text-decoration: none; }
.hm-sug-act a.pri { background: var(--pri); color: var(--pri-fg); }
.hm-sug-note { margin: 0; color: var(--mut); font-size: 12.5px; }
.hm-chat-chips { display: none; flex-wrap: wrap; gap: 8px; padding: 10px 16px 0; background-color: var(--soft); }
.js .hm-chat-chips { display: flex; }
.hm-chip { min-height: 44px; padding: 0 14px; border: 1px solid var(--pri); border-radius: 999px; background: var(--card); color: var(--pri); font: 700 14px system-ui, sans-serif; cursor: pointer; transition: transform .18s, background .18s; }
.hm-chip:hover { background: var(--soft); transform: translateY(-2px); }
.hm-chat-form { display: none; gap: 8px; padding: 12px 16px; background-color: var(--soft); }
.js .hm-chat-form { display: flex; }
.hm-chat-form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--fg); font-size: 16px; }
.hm-chat-send { min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--pri); color: var(--pri-fg); font: 800 15px system-ui, sans-serif; cursor: pointer; }
.hm-chat-send:disabled { opacity: .6; cursor: progress; }
.hm-chat-nojs { margin: 0; padding: 12px 16px; background-color: var(--soft); color: var(--mut); font-size: 14px; }
.js .hm-chat-nojs { display: none; }
.hm-chat-warn { margin: 0; padding: 10px 16px 16px; background-color: var(--soft); color: var(--mut); font-size: 12.5px; }

/* ===== Thẻ bí mật: dấu hỏi chấm lơ lửng ===== */
.hm-fact-q-mark { position: absolute; right: 12px; top: 8px; color: var(--acc); font: 900 58px/1 Georgia, serif; opacity: .15; pointer-events: none; animation: hm-bob 3s ease-in-out infinite; transition: opacity .25s, transform .25s; }
.js .hm-fact:hover .hm-fact-q-mark { opacity: .32; transform: rotate(12deg) scale(1.15); }
.js .hm-fact.open .hm-fact-q-mark { animation: none; opacity: .07; }

/* ===== Lời chào chữ ẩn hiện, từ khóa trôi, tia sáng, cực quang (bản 21.30.2): chỉ trang trí, nền sáng như cũ; tắt khi giảm chuyển động ===== */
.ps-head::before { content: ""; position: absolute; inset: -30% -10%; z-index: 0; pointer-events: none; filter: blur(12px);
  background: radial-gradient(40% 50% at 20% 40%, rgba(120,224,170,.5), transparent 70%), radial-gradient(35% 45% at 82% 30%, rgba(255,214,102,.5), transparent 70%), radial-gradient(40% 50% at 55% 85%, rgba(86,204,232,.42), transparent 70%); animation: hm-aurora 22s ease-in-out infinite alternate; }
@media (prefers-color-scheme: dark) { .ps-head::before { opacity: .55; } }
@keyframes hm-aurora { 0% { transform: translate(-3%, 2%) rotate(0deg) scale(1); } 50% { transform: translate(4%, -3%) rotate(4deg) scale(1.08); } 100% { transform: translate(-2%, 4%) rotate(-3deg) scale(1.02); } }
.hm-welcome { max-width: 760px; margin: 2px auto 4px; color: var(--hmut); font-size: clamp(12px, 3.3vw, 17px); font-weight: 800; letter-spacing: .16em; line-height: 1.8; text-transform: uppercase; }
.hm-ww, .hm-jw { display: inline-block; animation: hm-wordcycle 10s ease-in-out infinite both; }
.hm-ww:nth-child(1) { animation-delay: 0s; } .hm-ww:nth-child(2) { animation-delay: .18s; } .hm-ww:nth-child(3) { animation-delay: .36s; } .hm-ww:nth-child(4) { animation-delay: .54s; }
.hm-ww:nth-child(5) { animation-delay: .72s; } .hm-ww:nth-child(6) { animation-delay: .9s; } .hm-ww:nth-child(7) { animation-delay: 1.08s; }
.hm-jw:nth-child(1) { animation-delay: 1.8s; } .hm-jw:nth-child(2) { animation-delay: 2s; } .hm-jw:nth-child(3) { animation-delay: 2.2s; } .hm-jw:nth-child(4) { animation-delay: 2.4s; } .hm-jw:nth-child(5) { animation-delay: 2.6s; }
@keyframes hm-wordcycle { 0% { opacity: 0; transform: translateY(14px) scale(.92); filter: blur(5px); } 10%, 66% { opacity: 1; transform: none; filter: none; } 80%, 100% { opacity: 0; transform: translateY(-12px) scale(1.04); filter: blur(4px); } }
.hm-join { max-width: 740px; margin: 12px auto 0; color: var(--hfg); font-size: clamp(16px, 3.9vw, 22px); font-weight: 800; line-height: 1.7; }
.hm-jb { display: inline-block; margin-left: 4px; padding: 2px 16px; border-radius: 999px; background-color: var(--amber); background-image: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 70%); background-size: 220% 100%; color: var(--amber-fg); box-shadow: 0 6px 18px rgba(245,163,0,.35); animation: hm-pillshine 3.6s ease-in-out infinite; }
@keyframes hm-pillshine { 0% { background-position: 120% 0; transform: scale(1); } 50% { background-position: -20% 0; transform: scale(1.05); } 100% { background-position: -120% 0; transform: scale(1); } }
.hm-join-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 14px; padding: 0 28px; border-radius: 999px; background-color: var(--pri); background-image: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,0) 55%); color: var(--pri-fg); font-weight: 800; text-decoration: none; box-shadow: 0 10px 24px rgba(11,107,87,.35); animation: hm-ring 2.8s ease-in-out infinite; transition: transform .18s; }
.hm-join-go:hover { transform: translateY(-2px); }
.hm-join-go span { display: inline-block; animation: hm-nudge 1.4s ease-in-out infinite; }
@keyframes hm-ring { 0%, 100% { box-shadow: 0 10px 24px rgba(11,107,87,.35), 0 0 0 0 rgba(18,169,138,.5); } 50% { box-shadow: 0 10px 24px rgba(11,107,87,.35), 0 0 0 10px rgba(18,169,138,0); } }
@keyframes hm-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.hw { position: absolute; color: var(--hmut); font: italic 700 clamp(15px, 3.6vw, 24px)/1 "Times New Roman", Times, serif; white-space: nowrap; opacity: 0; text-shadow: 0 1px 10px rgba(255,255,255,.9); animation: hm-drift 12s ease-in-out infinite; }
@media (prefers-color-scheme: dark) { .hw { text-shadow: none; } }
.hw1 { left: 4%; top: 18%; } .hw2 { left: 68%; top: 8%; animation-delay: 1.4s; animation-duration: 13s; } .hw3 { left: 10%; top: 62%; animation-delay: 3s; animation-duration: 11s; }
.hw4 { left: 76%; top: 56%; animation-delay: 4.5s; } .hw5 { left: 30%; top: 8%; animation-delay: 6s; animation-duration: 14s; } .hw6 { left: 52%; top: 70%; animation-delay: 7.2s; animation-duration: 10.5s; }
.hw7 { left: 2%; top: 38%; animation-delay: 8.6s; animation-duration: 13s; } .hw8 { left: 62%; top: 34%; animation-delay: 2.2s; animation-duration: 12.5s; } .hw9 { left: 38%; top: 78%; animation-delay: 5.2s; } .hw10 { left: 82%; top: 78%; animation-delay: 9.8s; animation-duration: 11.5s; }
@keyframes hm-drift { 0% { opacity: 0; transform: translate(0, 18px) scale(.9); } 20%, 52% { opacity: .5; } 100% { opacity: 0; transform: translate(16px, -36px) scale(1.08); } }
.hm-spk { position: absolute; width: 13px; height: 13px; background: #ffbf3c; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; animation: hm-twinkle 3.6s ease-in-out infinite; }
@media (prefers-color-scheme: dark) { .hm-spk { background: #fff3b0; } }
.hm-spk.k1 { left: 14%; top: 26%; } .hm-spk.k2 { left: 84%; top: 20%; animation-delay: .7s; } .hm-spk.k3 { left: 44%; top: 14%; animation-delay: 1.4s; } .hm-spk.k4 { left: 70%; top: 64%; animation-delay: 2.1s; }
.hm-spk.k5 { left: 24%; top: 72%; animation-delay: 2.8s; } .hm-spk.k6 { left: 92%; top: 48%; animation-delay: .35s; } .hm-spk.k7 { left: 6%; top: 52%; animation-delay: 1.8s; } .hm-spk.k8 { left: 56%; top: 40%; animation-delay: 3.1s; }
@keyframes hm-twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* ===== Hộp nhạc nhiều bài: nút bật / tắt, nút bài khác, tên bài hiện ngắn ===== */
.hm-music-box { position: fixed; right: 12px; bottom: 82px; z-index: 41; display: none; align-items: center; gap: 8px; }
.js .hm-music-box { display: flex; }
.hm-next { display: none; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: #0b3d33; color: #fff; cursor: pointer; box-shadow: 0 10px 26px rgba(0,0,0,.3); transition: transform .18s; }
.hm-music-box.on .hm-next { display: grid; }
.hm-next:hover { transform: scale(1.08); }
.hm-next svg { width: 22px; height: 22px; fill: currentColor; }
.hm-track { position: absolute; right: 0; bottom: 58px; padding: 7px 14px; border-radius: 999px; background: #0b3d33; color: #fff; font: 700 13px/1 system-ui, sans-serif; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.hm-track.show { opacity: 1; transform: none; }

/* Điện thoại: bớt từ khóa trôi ở hai mép (chữ đầu trang chiếm gần hết bề ngang), mờ hơn */
@media (max-width: 719px) { .hw1, .hw3, .hw5, .hw7, .hw9 { display: none; } @keyframes hm-drift { 0% { opacity: 0; transform: translate(0, 18px) scale(.9); } 20%, 52% { opacity: .32; } 100% { opacity: 0; transform: translate(16px, -36px) scale(1.08); } } }

/* ===== Dải "đang trực tuyến / chào mừng" và cụm liên hệ có Cổng đối tác (bản 21.30.2) ===== */
.hm-live-strip { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 580px; margin: 14px auto 0; padding: 9px 18px; border: 1px solid rgba(18,169,138,.4); border-radius: 999px; background: rgba(255,255,255,.82); color: var(--hfg); font-size: 14px; font-weight: 700; line-height: 1.4; box-shadow: 0 6px 18px rgba(11,107,87,.12); }
.hm-live-strip[hidden] { display: none; }
@media (prefers-color-scheme: dark) { .hm-live-strip { background: rgba(255,255,255,.1); border-color: rgba(111,224,195,.45); } }
.hm-pulse { position: relative; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: #18c98f; }
.hm-pulse::after { content: ""; position: absolute; inset: -5px; border: 2px solid #18c98f; border-radius: 50%; animation: hm-ping 1.8s ease-out infinite; }
.hm-live-t { transition: opacity .45s, transform .45s; }
.hm-live-t.out { opacity: 0; transform: translateY(-8px); }
/* Cụm "Dành cho đối tác": Cổng đối tác đứng ĐẦU và nổi bật (khối đặc, vòng sáng nhịp nhàng), lối CTV khu vực ngay dưới, thông tin đơn vị (địa chỉ, điện thoại, hỗ trợ) xuống dưới cùng */
.hm-contact { border: 2px solid var(--pri); }
.hm-contact-h { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pri); }
.hm-portal { display: block; padding: 22px 18px 20px; border-radius: 16px; box-shadow: 0 12px 28px rgba(11,107,87,.34); animation: hm-ring 2.8s ease-in-out infinite; }
.hm-portal-t { display: block; font-size: clamp(22px, 5.4vw, 28px); font-weight: 800; line-height: 1.2; }
.hm-portal small { display: block; margin-top: 8px; font-size: 15px; font-weight: 500; line-height: 1.45; }
.hm-portal-go { display: inline-block; margin-top: 14px; padding: 8px 22px; border-radius: 999px; background-color: var(--pri-fg); color: var(--pri); font-size: 16px; font-weight: 800; }
/* Dịch vụ trực tuyến: Tra cứu (cả hàng), rồi Đặt lịch khám và CTV khu vực NẰM NGANG nhau, cùng đặc màu (CTV màu xanh dương để phân biệt với Đặt lịch xanh lục) */
.hm-svc-act { grid-template-columns: 1fr; }
.ps-btn.ctv { border-color: #175e9c; background-color: #175e9c; color: #fff; }
.hm-ctv small { font-size: 13px; }
@media (prefers-color-scheme: dark) { .ps-btn.ctv { border-color: #8cc4f5; background-color: #8cc4f5; color: #06233f; } }
@media (min-width: 560px) { .hm-svc-act { grid-template-columns: 1fr 1fr; } .hm-svc-act .ps-btn.hot { grid-column: 1 / -1; } .hm-svc-act .ps-btn.ctv:nth-child(2) { grid-column: 1 / -1; } }
/* Gói 21.32.10: chế độ ẨN (mặc định) bỏ nút CTV khu vực nên chỉ còn Tra cứu và Đặt lịch khám; Đặt lịch khám một mình ở hàng thứ hai chiếm nửa hàng, nửa kia TRỐNG.
   Nút cuối nằm ở vị trí chẵn (đứng một mình ở hàng lẻ) thì chiếm trọn hàng. Chế độ HIỆN (Tra cứu, Đặt lịch, CTV): nút cuối ở vị trí lẻ nên không đổi; không đặt lịch thì CTV đã chiếm cả hàng như trước. */
@media (min-width: 560px) { .hm-svc-act .ps-btn:last-child:nth-child(even) { grid-column: 1 / -1; } }
/* Thông tin đơn vị nằm DƯỚI Cổng đối tác, Đặt lịch khám và CTV khu vực: địa chỉ, điện thoại, hỗ trợ; trên màn rộng chia cột */
.hm-info-h { margin: 0 0 12px; font-size: 17px; }
.hm-contact-act { margin-top: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .hm-contact-act { grid-template-columns: 1fr 1fr; } }
@media (min-width: 720px) { .hm-info-dl { grid-template-columns: 2fr 1fr 1fr; align-items: start; gap: 12px 24px; } }

/* ===== Bác sĩ đồng hành (src/public-home-doctors.js): thẻ chữ, không ảnh; vòng tròn chữ cái đầu có màu theo chuyên khoa (hm-dc0..7, không style nội tuyến) ===== */
/* Lưới là flex wrap căn giữa: một hoặc hai bác sĩ nằm giữa dưới tiêu đề căn giữa (lưới tự chia cột để lại cột trống bên phải), nhiều bác sĩ thì hàng cuối cũng căn giữa */
.hm-docs-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hm-doc { --dc: #0b6b57; position: relative; display: flex; align-items: flex-start; gap: 14px; flex: 0 1 320px; max-width: 100%; min-width: 0; overflow: hidden; padding: 20px 18px 18px; border: 1px solid var(--line); border-radius: 18px; background-color: var(--card); box-shadow: 0 8px 22px rgba(7,53,44,.08); transition: box-shadow .22s, border-color .22s; }
.js .hm-doc.hm-rv { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1), box-shadow .22s, border-color .22s; }
.hm-doc::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--dc); }
.hm-doc::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.34), transparent); transform: skewX(-18deg); opacity: 0; pointer-events: none; }
@media (prefers-color-scheme: dark) { .hm-doc::after { background: linear-gradient(100deg, transparent, rgba(255,255,255,.1), transparent); } }
.hm-doc:hover { border-color: var(--dc); box-shadow: 0 16px 34px rgba(7,53,44,.16); }
.hm-doc:hover::after { opacity: 1; animation: hm-shine 1.1s ease-out 1; }
.hm-dc0 { --dc: #0b6b57; } .hm-dc1 { --dc: #1565c0; } .hm-dc2 { --dc: #c2185b; } .hm-dc3 { --dc: #5e35b1; }
.hm-dc4 { --dc: #b71c1c; } .hm-dc5 { --dc: #2e7d32; } .hm-dc6 { --dc: #bf4300; } .hm-dc7 { --dc: #455a64; }
.hm-doc-av { flex: 0 0 56px; display: grid; place-items: center; width: 56px; height: 56px; margin-top: 2px; border-radius: 50%; background-color: var(--dc); color: #fff; font: 800 22px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--dc); transition: transform .25s; }
.hm-doc:hover .hm-doc-av { transform: scale(1.07) rotate(-4deg); }
.hm-doc-body { flex: 1 1 auto; min-width: 0; }
.hm-doc-h { margin: 0 0 4px; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.hm-doc-t { display: block; margin-bottom: 1px; color: var(--mut); font-size: 12.5px; font-weight: 800; letter-spacing: .04em; }
.hm-doc-tag { display: block; width: fit-content; max-width: 100%; margin: 0 0 4px; padding: 0 8px; border: 1px solid var(--mut); border-radius: 6px; color: var(--mut); font-size: 12px; font-weight: 700; line-height: 1.6; }
.hm-doc-spec { display: inline-block; max-width: 100%; margin: 2px 0 6px; padding: 1px 12px; border-radius: 999px; background-color: var(--soft); color: var(--pri); font-size: 13.5px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.hm-doc-work { margin: 0 0 6px; color: var(--fg); font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.hm-doc-bio { margin: 0; color: var(--mut); font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.hm-doc-note { max-width: 640px; margin: 22px auto 0; text-align: center; color: var(--mut); font-size: 13px; line-height: 1.5; }
.js .hm-docs-grid > .hm-rv:nth-child(2) { transition-delay: .08s; } .js .hm-docs-grid > .hm-rv:nth-child(3) { transition-delay: .16s; } .js .hm-docs-grid > .hm-rv:nth-child(4) { transition-delay: .24s; }
@media (hover: none) { .hm-doc:hover .hm-doc-av { transform: none; } }
@media print { .hm-doc { box-shadow: none; } .hm-doc::after { display: none; } }
/* Làm mới danh sách (trang-chu.js) ẩn dải và chip "Bác sĩ" khi không còn ai: thuộc tính hidden phải thắng display của lớp */
.hm-band[hidden], .hm-chips a[hidden] { display: none; }

/* ===== Thẻ "Chương trình của phòng khám" (bản 21.31.7, src/public-home-campaigns.js; cùng khung .hm-promo với thẻ ưu đãi của đơn vị) ===== */
/* Hàng nút phụ (Gọi, Nhắn Zalo): nổi trên lớp ::after của .hm-promo-go (cả thẻ bấm được) như .hm-promo-web. Lưới tự co: hai nút cạnh nhau khi vừa chỗ, một cột khi hẹp (thẻ 82% của màn 375 px chỉ rộng khoảng 250 px) */
.hm-promo-acts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 2px; }
.hm-promo-acts .hm-promo-web { min-width: 0; padding: 6px 10px; text-align: center; overflow-wrap: anywhere; }
/* Dải góc ghi "Chương trình" (12 chữ, dài gấp ba chữ "Ưu đãi" của thẻ đơn vị): dải 120 px mặc định chỉ lộ khoảng 70 px trong góc thẻ nên bị cắt chữ.
   Lùi dải vào xa góc hơn và làm dài ra để lộ trọn chữ; chừa thêm chỗ bên phải dòng tên để không đè lên dải. */
.hm-promo-ct .hm-promo-ribbon { top: 26px; right: -56px; width: 200px; font-size: 11px; letter-spacing: .03em; }
.hm-promo-ct .hm-promo-by { padding-right: 56px; }
/* Chữ phụ của thẻ chương trình không nhỏ hơn 13 px (dòng hạn 14 px): người lớn tuổi xem trên điện thoại */
.hm-promo-ct .hm-promo-by p { font-size: 13px; }
.hm-promo-ct .hm-promo-when { font-size: 14px; }
/* Trang xem trước đúng một thẻ trong khung iframe của màn quản lý (public/js/khuyen-mai.js): bỏ chỗ chừa cho thanh dưới của trang chủ và thu hẹp dải nền */
.hm-xt { padding-bottom: 0; }
.hm-xt .hm-band { padding: 12px 0 0; }

