/* TRANG CHỦ "HIÊN TRÀ ĐÓN KHÁCH & THIÊN HÀ 8 VỆ TINH" (chỉ bản web, trang_chu.js dựng).
   Phương án: danh_gia/phuong_an_trang_chu.md (mục 7); bản "hiên trà + thiên hà" theo yêu cầu chủ trang 05/12/2026.
   - Màn hình chào: sáng, ảnh sân vườn thật (assets/intro-bg.jpg), chữ HTML trên khoảng tường trắng.
   - Nền tối = Tím Thiên Hà (mặc định), đồng bộ cả hộp chi tiết (kính mờ tím). Nền sáng vẫn có trong menu.
   Chuyển động chỉ dùng transform / opacity (60 khung hình/giây); tôn trọng "giảm chuyển động";
   ra khỏi màn hình thì tạm dừng (lớp .th-idle). */
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Lora:ital,wght@1,400;1,500&display=swap");

:root{
  --th-ink:#1E1440; --th-mist:#5A4F78; --th-gold:#B7791F; --th-edge:rgba(30,20,64,.12);
  --th-glass:rgba(255,255,255,.78); --th-glass2:rgba(255,255,255,.5);
  --th-shadow:0 18px 40px -26px rgba(30,20,64,.4); --th-line:rgba(124,58,237,.28);
  --th-grad:linear-gradient(135deg,#7C3AED 0%,#9333EA 100%);
  --th-ease:cubic-bezier(.22,1,.36,1); --th-pop:cubic-bezier(.34,1.56,.64,1);
}
:root[data-theme="dark"]{
  --th-ink:#F8FAFC; --th-mist:#DDD6FE; --th-gold:#F5C98A; --th-edge:rgba(192,132,252,.25);
  --th-glass:rgba(255,255,255,.07); --th-glass2:rgba(255,255,255,.015);
  --th-shadow:0 26px 50px -22px rgba(5,0,20,.85); --th-line:rgba(245,201,138,.26);
  /* ĐỒNG BỘ TẬN GỐC: thay bảng màu xanh xám cũ của mọi tính năng bằng tông Tím Thiên Hà
     (các tệp khác đều dùng các biến này; tệp này nạp sau cùng nên thắng) */
  --bg:#14072E; --surface:#1E1142; --surface-2:#271852; --stage:#180B38;
  --ink:#F8FAFC; --ink-2:#DDD6FE; --muted:#B7A9DE; --rule:#3E2A6E;
  --civic:#C084FC; --civic-2:#D8B4FE; --civic-soft:#2E1A5E; --civic-ink:#E9D5FF;
  --grad-brand:linear-gradient(135deg,#7C3AED 0%,#9333EA 100%);
  --c-sky:#14284A; --c-blue:#1E2160; --c-violet:#2E1A5E; --c-indigo:#22205A;
  --wx-shadow:0 1px 2px rgba(0,0,0,.3),0 24px 48px -30px rgba(5,0,20,.8);
  --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px -12px rgba(5,0,20,.7);
  color-scheme:dark;
}

/* có trang chủ: LUÔN ẩn hàng nút gọn (.cc-launch) — chưa hỏi thì trang chủ đã có đủ 8 việc; đang hỏi đáp thì thanh mục
   (.wx-nav) đã có mọi chức năng, còn khối ô có hình làm rối mắt (chủ trang 05/12/2026); đã hỏi: ẩn trang chủ */
html.th-on body.web .cc-launch{display:none}
html.th-chat .th-hub{display:none}
html.th-lock{overflow:hidden!important}

/* ===================== NỀN TÍM THIÊN HÀ (cố định sau mọi thứ) ===================== */
.th-sky{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;
  background:linear-gradient(165deg,#12062A 0%,#1E0B42 48%,#0D0520 100%)}
:root:not([data-theme="dark"]) .th-sky{display:none}
:root[data-theme="dark"] body.web{background:#12062A!important}
.th-nb{position:absolute;border-radius:50%;filter:blur(60px);will-change:transform;animation:th-drift 46s ease-in-out infinite alternate}
.th-nb.n1{left:-12%;top:38%;width:62vmax;height:42vmax;background:radial-gradient(closest-side,#7E22CE,transparent);opacity:.26}
.th-nb.n2{right:-14%;top:-8%;width:56vmax;height:40vmax;background:radial-gradient(closest-side,#9333EA,transparent);opacity:.22;animation-duration:58s;animation-direction:alternate-reverse}
.th-nb.n3{left:30%;bottom:-24%;width:50vmax;height:34vmax;background:radial-gradient(closest-side,#7E22CE,transparent);opacity:.2;animation-duration:64s}
@keyframes th-drift{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(4vw,-3vh,0) scale(1.12)}}
.th-stars{position:absolute;inset:0}
.th-stars b{position:absolute;left:var(--x);top:var(--y);width:var(--s);height:var(--s);border-radius:50%;background:#fff;opacity:var(--o);
  box-shadow:0 0 3px rgba(255,255,255,.8);animation:th-twinkle var(--d) var(--dl) ease-in-out infinite alternate}
@keyframes th-twinkle{from{opacity:calc(var(--o) * .25)}to{opacity:var(--o)}}
.th-shoot{position:absolute;top:12%;left:62%;width:140px;height:1px;opacity:0;transform-origin:0 50%;
  background:linear-gradient(90deg,rgba(255,255,255,.9),transparent);animation:th-shoot 13s 4s linear infinite}
.th-shoot.s2{top:34%;left:22%;width:110px;animation-duration:19s;animation-delay:11s}
@keyframes th-shoot{0%,92%{opacity:0;transform:rotate(152deg) translate3d(0,0,0)}93%{opacity:.85}100%{opacity:0;transform:rotate(152deg) translate3d(280px,0,0)}}

/* ===================== THANH TRÊN: một thanh mảnh, trái = tách trà + tên trang, phải = 1 nút menu ===================== */
html.th-hdr body.web .top{padding:8px max(20px,var(--wx-gut,16px));gap:12px;flex-wrap:nowrap;justify-content:space-between;
  background:color-mix(in srgb,var(--bg) 74%,transparent);border-bottom:1px solid color-mix(in srgb,var(--ink) 9%,transparent);
  transition:background-color .35s,border-color .35s}
html.th-hdr body.web .top::after{display:none}
html.th-hdr .top .mark,html.th-hdr .top .brand span,html.th-hdr .top .clock{display:none!important}
html.th-hdr .top .brand{flex:1 1 auto;min-width:0;margin-right:0;display:flex;align-items:center;gap:10px}
html.th-hdr body.web .top .brand b{font-size:16px!important;font-weight:700;letter-spacing:-.01em;line-height:1.3;color:var(--ink)}
.th-bicon{flex:none;display:grid;place-items:center;width:30px;height:30px;font-style:normal;color:var(--th-gold)}
.th-bicon svg{width:28px;height:28px;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--th-gold) 55%,transparent))}
/* đang ở trang chủ (chưa cuộn qua): thanh trong suốt nằm trên nền trang chủ */
html.th-hdr.th-on:not(.th-chat):not(.th-past) body.web .top{background:transparent;border-bottom-color:transparent;
  backdrop-filter:none;-webkit-backdrop-filter:none}
html.th-hdr.th-on:not(.th-chat):not(.th-past) body.web .top .brand b{color:var(--th-ink)}

.th-mbtn{flex:none;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 15px 0 12px;border-radius:999px;cursor:pointer;
  border:1px solid color-mix(in srgb,var(--ink) 18%,transparent);background:color-mix(in srgb,var(--surface) 35%,transparent);
  color:var(--ink);font:inherit;font-size:14px;font-weight:600;transition:border-color .2s,background-color .2s}
.th-mbtn:hover,.th-mbtn[aria-expanded="true"]{border-color:color-mix(in srgb,var(--ink) 36%,transparent);background:color-mix(in srgb,var(--surface) 70%,transparent)}
.th-mbtn:focus-visible{outline:3px solid var(--civic);outline-offset:2px}
.th-mbtn svg{width:20px;height:20px;flex:none}
@media (max-width:520px){.th-mbtn{width:42px;height:42px;padding:0;justify-content:center}.th-mbtn-t{display:none}}
/* nút "Ủng hộ" luôn hiện ở góc phải, cạnh nút menu; trái tim màu hồng (chủ trang 05/12/2026) */
html.th-hdr body.web .top #donBtn.th-don{--pk:#EC4899;flex:none;display:inline-flex!important;flex-direction:row;align-items:center;gap:7px;
  height:40px;width:auto!important;padding:0 15px 0 12px!important;margin-left:auto;border-radius:999px;cursor:pointer;
  border:1px solid color-mix(in srgb,var(--pk) 55%,transparent);background:color-mix(in srgb,var(--pk) 14%,transparent);
  color:var(--ink);font:inherit;font-size:14px;font-weight:700}
html.th-hdr[data-theme="dark"] body.web .top #donBtn.th-don{--pk:#F472B6}
html.th-hdr body.web .top #donBtn.th-don svg{width:19px;height:19px;flex:none;color:var(--pk)}
html.th-hdr body.web .top #donBtn.th-don .t{display:inline!important;font-size:14px}
html.th-hdr body.web .top #donBtn.th-don:hover{background:color-mix(in srgb,var(--pk) 24%,transparent)}
html.th-hdr body.web .top #donBtn.th-don:focus-visible{outline:3px solid var(--pk);outline-offset:2px}
@media (max-width:520px){html.th-hdr body.web .top #donBtn.th-don{height:42px;padding:0 12px 0 10px!important;font-size:13.5px}}
/* số liên hệ ngay bên trái "Ủng hộ" (chủ trang 05/12/2026); màn hẹp chỉ còn biểu tượng điện thoại (bấm để gọi) */
html.th-hdr body.web .top .contact-pill.th-tel{flex:none;display:inline-flex!important;align-items:center;gap:9px;height:44px;margin-left:auto;
  padding:0 14px 0 12px!important;border-radius:14px;border:1px solid color-mix(in srgb,var(--ink) 14%,transparent);
  background:color-mix(in srgb,var(--ink) 6%,transparent);box-shadow:none;color:var(--ink);text-decoration:none}
html.th-hdr body.web .top .contact-pill.th-tel:hover{background:color-mix(in srgb,var(--ink) 11%,transparent);transform:none}
html.th-hdr body.web .top .contact-pill.th-tel svg{width:19px;height:19px;flex:none}
html.th-hdr body.web .top .contact-pill.th-tel>span{display:flex!important;flex-direction:column;gap:2px;line-height:1.15}
html.th-hdr body.web .top .contact-pill.th-tel .cp-name{display:block!important;font-size:12px;font-weight:600;color:var(--muted);opacity:1}
html.th-hdr body.web .top .contact-pill.th-tel .cp-num{display:block;font-size:15px;font-weight:800}
html.th-hdr body.web .top .contact-pill.th-tel:focus-visible{outline:3px solid var(--civic);outline-offset:2px}
html.th-hdr body.web .top .th-tel+#donBtn.th-don,html.th-hdr body.web .top .th-fb+#donBtn.th-don{margin-left:0}
/* nút Facebook ngay sau số liên hệ (chủ trang 06/12/2026); màn hẹp chỉ còn biểu tượng */
html.th-hdr body.web .top .th-fb{flex:none;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 14px 0 11px;border-radius:14px;
  border:1px solid color-mix(in srgb,#1877F2 35%,transparent);background:color-mix(in srgb,#1877F2 10%,transparent);color:var(--ink);
  font-weight:700;font-size:14px;text-decoration:none}
html.th-hdr body.web .top .th-fb:hover{background:color-mix(in srgb,#1877F2 18%,transparent)}
html.th-hdr body.web .top .th-fb:focus-visible{outline:3px solid #1877F2;outline-offset:2px}
html.th-hdr body.web .top .th-fb svg{width:22px;height:22px;flex:none}
@media (max-width:760px){html.th-hdr body.web .top .th-fb{width:42px;height:42px;padding:0;justify-content:center;border-radius:999px}
  html.th-hdr body.web .top .th-fb span{display:none}}
@media (max-width:760px){html.th-hdr body.web .top .contact-pill.th-tel .cp-name{display:none!important}}
@media (max-width:560px){html.th-hdr body.web .top .contact-pill.th-tel{width:42px;height:42px;padding:0!important;justify-content:center;border-radius:999px}
  html.th-hdr body.web .top .contact-pill.th-tel>span{display:none!important}}

.th-menu{position:fixed;z-index:45;top:calc(var(--hdr,56px) + 6px);right:max(12px,env(safe-area-inset-right,0px));
  width:min(320px,calc(100vw - 24px));max-height:calc(100vh - var(--hdr,56px) - 20px);overflow-y:auto;overflow-x:hidden;
  display:flex;flex-direction:column;gap:4px;padding:8px;border-radius:20px;
  background:color-mix(in srgb,var(--surface) 90%,transparent);border:1px solid color-mix(in srgb,var(--ink) 12%,transparent);
  backdrop-filter:blur(18px) saturate(1.3);-webkit-backdrop-filter:blur(18px) saturate(1.3);
  box-shadow:0 28px 60px -24px rgba(0,0,0,.55);transform-origin:top right;animation:th-menu-in .22s var(--th-ease)}
:root[data-theme="dark"] .th-menu{background:rgba(18,10,40,.86);border-color:rgba(192,132,252,.25)}
@keyframes th-menu-in{from{opacity:0;transform:translateY(-6px) scale(.97)}to{opacity:1;transform:none}}
.th-menu[hidden]{display:none}
.th-mrow{display:flex;align-items:center;gap:8px;padding:4px 6px 4px 12px}
.th-mlab{flex:1;font-size:14.5px;font-weight:600;color:var(--ink-2)}
body.web .th-menu .seg{display:flex!important;gap:6px}
body.web .th-menu .seg .tbtn{width:48px!important;height:40px;padding:0!important;justify-content:center;border-radius:12px}
body.web .th-menu>.tbtn,body.web .th-menu>.contact-pill,body.web .th-menu>.stwrap>.stats{display:flex!important;flex-direction:row!important;align-items:center;
  justify-content:flex-start;gap:12px!important;width:100%!important;min-height:46px;height:auto;padding:8px 12px!important;border-radius:12px;
  border:0;background:transparent;box-shadow:none;color:var(--ink);font-size:15px!important;font-weight:600;text-align:left;text-decoration:none}
body.web .th-menu>.tbtn:hover,body.web .th-menu>.contact-pill:hover,body.web .th-menu>.stwrap>.stats:hover{background:color-mix(in srgb,var(--ink) 7%,transparent)}
body.web .th-menu>.tbtn svg,body.web .th-menu>.contact-pill svg{width:20px;height:20px;flex:none}
body.web .th-menu #updBtn .t,body.web .th-menu #donBtn .t,body.web .th-menu #wideTxt,body.web .th-menu .stats .st-l,body.web .th-menu .th-ml{display:inline!important;font-size:15px}
body.web .th-menu #donBtn{color:var(--seal)}
body.web .th-menu #newBtn{background:var(--th-grad);color:#fff;margin-bottom:4px}
body.web .th-menu .contact-pill>span{display:flex;flex-direction:column;gap:3px;line-height:1.25}
body.web .th-menu .contact-pill .cp-name{display:block!important;font-size:13px;font-weight:600;color:var(--muted)}
body.web .th-menu .contact-pill .cp-num{display:block;font-size:15px;font-weight:700}
body.web .th-menu>.stwrap:not([hidden]){display:block;position:relative}
body.web .th-menu>.stwrap>.stats{flex-wrap:wrap;gap:4px 8px!important;font-size:14px!important}
body.web .th-menu .stats .st-l{font-size:14px!important}
body.web .th-menu .stats svg,body.web .th-menu #stTotal{display:inline-block!important}
.th-msep{height:1px;margin:4px 8px;background:color-mix(in srgb,var(--ink) 10%,transparent)}
@media (max-width:640px){body.web .th-menu>#wideBtn{display:none!important}}

/* thanh ngang (mục lục các tính năng): chủ trang 06/12/2026 — LUÔN hiện, nằm trên cùng ngay dưới thanh tiêu đề, kể cả ở
   trang chủ (trước đây ẩn cho tới khi cuộn qua trang chủ). Trang chủ chừa thêm --wxnav (web_theme.js đo) để không bị che. */
html.th-on:not(.th-chat) .wx-nav{position:fixed;left:0;right:0;top:var(--hdr,56px)}

/* ===================== DẢI TRANG CHỦ ===================== */
.th-hub{position:relative;isolation:isolate;color:var(--th-ink);
  margin-top:calc(-1 * var(--hdr,0px));padding-top:calc(var(--hdr,0px) + var(--wxnav,0px));   /* thanh trên trong suốt nằm đè lên nền trang chủ; chừa chỗ cho thanh ngang */
  background:radial-gradient(46% 52% at 50% 52%,rgba(168,85,247,.12),transparent 72%),linear-gradient(160deg,#F7F4FF,#EEF0FA)}
:root[data-theme="dark"] .th-hub{background:transparent}
.th-in{position:relative;z-index:1;max-width:1240px;margin:0 auto;padding:40px max(14px,env(safe-area-inset-right,0px)) 26px max(14px,env(safe-area-inset-left,0px))}
.th-orbit{display:grid;gap:16px}
.th-ring{display:none}

/* ---------- Tâm: quả cầu kính phát sáng + bộ ấm trà bốc khói ---------- */
.th-core{position:relative;isolation:isolate;justify-self:center;display:grid;grid-template-columns:1fr;justify-items:center;align-content:center;row-gap:4px;
  width:min(232px,64vw);aspect-ratio:1;padding:16px;border-radius:50%;cursor:pointer;text-align:center;color:#F8FAFC;font:inherit;
  border:1px solid rgba(245,201,138,.42);
  background:radial-gradient(circle at 34% 24%,rgba(255,255,255,.26),transparent 34%),
    radial-gradient(circle at 50% 62%,rgba(168,85,247,.55),rgba(76,29,149,.82) 58%,rgba(30,10,70,.95) 100%);
  box-shadow:inset 0 -22px 44px rgba(14,4,36,.65),inset 0 12px 30px rgba(255,255,255,.1),
    0 0 50px -8px rgba(245,190,120,.5),0 0 110px -24px rgba(168,85,247,.9);transition:border-color .25s}
.th-core:hover{border-color:rgba(245,201,138,.85)}
.th-core:focus-visible{outline:3px solid var(--th-gold);outline-offset:6px}
.th-sphere{position:absolute;inset:0;border-radius:50%;pointer-events:none;z-index:2;
  background:radial-gradient(ellipse 46% 22% at 40% 14%,rgba(255,255,255,.32),transparent 70%),
    radial-gradient(circle at 70% 82%,rgba(245,201,138,.16),transparent 40%)}
.th-glow{position:absolute;inset:-18px;z-index:-1;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(245,190,120,.32),rgba(168,85,247,.22) 60%,transparent);animation:th-breathe 4.8s ease-in-out infinite alternate}
@keyframes th-breathe{from{opacity:.45;transform:scale(.96)}to{opacity:1;transform:scale(1.06)}}
.th-orb{position:absolute;border-radius:50%;pointer-events:none;z-index:-1}
.th-orb.o1{inset:-10px;border:1.5px solid rgba(245,201,138,.6);animation:th-spin 30s linear infinite}
.th-orb.o2{inset:-21px;border:1px solid rgba(192,132,252,.5);animation:th-spin 46s linear infinite reverse}
.th-orb i{position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:#FBE3BE;
  box-shadow:0 0 8px 2px rgba(245,201,138,.75);transform:rotate(var(--a)) translateY(calc(var(--r) * -1))}
.th-orb.o1 i{--r:var(--rr1)}
.th-orb.o2 i{background:#E9D5FF;box-shadow:0 0 8px 2px rgba(192,132,252,.8);width:5px;height:5px;margin:-2.5px 0 0 -2.5px;--r:var(--rr2)}
.th-orb i:nth-child(1){--a:20deg}.th-orb i:nth-child(2){--a:115deg}.th-orb i:nth-child(3){--a:210deg}.th-orb i:nth-child(4){--a:300deg}
.th-core{--rr1:calc(min(232px,64vw) / 2 + 10px);--rr2:calc(min(232px,64vw) / 2 + 21px)}
.th-tea{position:relative;z-index:1;display:block;width:66%;margin-top:4px}
.th-tea img{display:block;width:100%;height:auto;filter:drop-shadow(0 10px 14px rgba(10,2,30,.55))}
.th-core b{position:relative;z-index:3;font-size:21px;font-weight:800;line-height:1.18;text-wrap:balance;letter-spacing:-.01em;
  text-shadow:0 2px 12px rgba(20,5,50,.75)}
.th-core small{position:relative;z-index:3;font-size:12.5px;line-height:1.35;color:#E9DDFF;text-wrap:balance;text-shadow:0 1px 8px rgba(20,5,50,.8)}
.th-core.is-peek b{font-size:17px}

/* ---------- khói trà (dùng chung: Tâm + màn hình chào) ---------- */
.th-steam{position:absolute;pointer-events:none;z-index:2}
.th-steam svg{display:block;width:100%;height:100%;overflow:visible;filter:blur(1.4px)}
.th-steam .w{fill:none;stroke:rgba(255,255,255,.72);stroke-width:3;stroke-linecap:round;opacity:0;
  transform-box:fill-box;transform-origin:50% 100%;animation:th-steam 4.4s ease-in-out infinite}
.th-steam .w2{animation-duration:5s;animation-delay:-1.6s}
.th-steam .w3{animation-duration:3.9s;animation-delay:-2.9s;stroke-width:2.4}
@keyframes th-steam{0%{opacity:0;transform:translate3d(0,16%,0) scale(.8,.7)}28%{opacity:.85}62%{opacity:.42}
  100%{opacity:0;transform:translate3d(8%,-18%,0) scale(1.25,1.08)}}
.th-steam.s-core{left:16%;width:34%;bottom:62%;height:78%}

/* ---------- nhóm + thẻ vệ tinh kính mờ phân màu ---------- */
.th-grp{display:grid;gap:8px}
.th-gh{margin:6px 2px 0;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--th-mist)}
.th-grp ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.th-node{--ac:#A855F7;position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  width:100%;height:100%;min-height:118px;padding:14px 10px;border-radius:22px;text-align:center;cursor:pointer;font:inherit;color:var(--th-ink);
  border:1px solid color-mix(in srgb,var(--ac) 45%,transparent);
  background:linear-gradient(160deg,color-mix(in srgb,var(--ac) 22%,transparent),color-mix(in srgb,var(--ac) 9%,transparent));
  box-shadow:var(--th-shadow),inset 0 1px 0 rgba(255,255,255,.12),0 0 22px -12px var(--ac);
  backdrop-filter:blur(12px) saturate(1.25);-webkit-backdrop-filter:blur(12px) saturate(1.25);
  transition:transform .6s var(--th-pop),opacity .35s var(--th-ease),border-color .3s,box-shadow .3s}
:root:not([data-theme="dark"]) .th-node{background:linear-gradient(160deg,color-mix(in srgb,var(--ac) 16%,#fff),color-mix(in srgb,var(--ac) 6%,#fff))}
.th-node[data-id="nop"]{--ac:#10B981}
.th-node[data-id="tbvl"]{--ac:#38BDF8}
.th-node[data-id="chuyen"]{--ac:#2DD4BF}
.th-node[data-id="cham-dut"]{--ac:#FB7185}
.th-node[data-id="tien"]{--ac:#F59E0B}
.th-node[data-id="thang"]{--ac:#A855F7}
.th-node[data-id="lich"]{--ac:#6366F1}
.th-node[data-id="mau"]{--ac:#EC4899}
.th-node::after{content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .3s var(--th-ease);
  box-shadow:0 0 0 1.5px color-mix(in srgb,var(--ac) 85%,#fff),0 0 34px 2px color-mix(in srgb,var(--ac) 60%,transparent),
    inset 0 0 22px -6px color-mix(in srgb,var(--ac) 65%,transparent)}
.th-node:is(:hover,.is-on,:focus-visible)::after{opacity:1}
.th-node:is(:hover,.is-on){transform:scale(1.08);z-index:3}
.th-node:focus-visible{outline:3px solid var(--ac);outline-offset:3px}
.has-focus .th-node:not(.is-on){opacity:.45}
.th-ic{position:relative;overflow:hidden;flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:15px;
  color:color-mix(in srgb,var(--ac) 88%,#fff)}
:root:not([data-theme="dark"]) .th-ic{color:color-mix(in srgb,var(--ac) 78%,#000)}
.th-ic svg{width:36px;height:36px;overflow:visible;filter:drop-shadow(0 0 6px color-mix(in srgb,var(--ac) 70%,transparent))}
.th-t{display:grid;gap:3px;min-width:0}
.th-t b{font-size:15.5px;font-weight:800;line-height:1.28;text-wrap:balance}
.th-t small{font-size:13px;line-height:1.4;color:var(--th-mist)}
.th-node[data-soon]{border-style:dashed}
.th-soon{position:absolute;top:8px;right:8px;padding:2px 8px;border-radius:999px;font-style:normal;font-size:12px;font-weight:800;
  color:#1E1440;background:#F5C98A;border:1px solid rgba(245,201,138,.8)}

/* ---------- icon động: nhẹ khi đứng yên, sinh động hơn khi rê chuột / chạm / Tab ---------- */
.th-ic svg *{transform-box:fill-box;transform-origin:50% 50%}
.th-node:is(:hover,.is-on,:focus-visible) .th-ic svg{filter:drop-shadow(0 0 10px var(--ac))}
/* 1 Nộp HS: mũi tên tải lên trượt */
.a-up{animation:a-up 3.2s var(--th-ease) infinite}
.th-node:is(:hover,.is-on,:focus-visible) .a-up{animation-duration:1.3s}
@keyframes a-up{0%{opacity:0;transform:translateY(4px)}25%,55%{opacity:1;transform:none}85%,100%{opacity:0;transform:translateY(-5px)}}
/* 2 Thông báo việc làm: chuông rung + sóng lan */
.a-bell{transform-origin:50% 0!important;animation:a-ring 3.6s ease-in-out infinite}
.th-node:is(:hover,.is-on,:focus-visible) .a-bell{animation-duration:1.1s}
@keyframes a-ring{0%,62%,100%{transform:none}8%{transform:rotate(14deg)}18%{transform:rotate(-12deg)}28%{transform:rotate(8deg)}38%{transform:rotate(-5deg)}48%{transform:rotate(2deg)}}
.a-wv{opacity:0;animation:a-wave 3.6s ease-out infinite}
.a-wv.l{transform-origin:100% 100%!important}
.a-wv.r{transform-origin:0 100%!important}
.th-node:is(:hover,.is-on,:focus-visible) .a-wv{animation-duration:1.1s}
@keyframes a-wave{0%{opacity:0;transform:scale(.6)}12%{opacity:1}30%,100%{opacity:0;transform:scale(1.25)}}
/* 3 Chuyển hưởng: 2 mũi tên trượt qua lại */
.a-r{animation:a-slr 3s ease-in-out infinite}
.a-l{animation:a-sll 3s ease-in-out infinite}
.th-node:is(:hover,.is-on,:focus-visible) :is(.a-r,.a-l){animation-duration:1.2s}
@keyframes a-slr{0%,100%{transform:none}50%{transform:translateX(3px)}}
@keyframes a-sll{0%,100%{transform:none}50%{transform:translateX(-3px)}}
/* 4 Chấm dứt hưởng: biển dừng phát xung dịu */
.a-pulse{opacity:0;animation:a-pulse 3s ease-out infinite}
.th-node:is(:hover,.is-on,:focus-visible) .a-pulse{animation-duration:1.4s}
@keyframes a-pulse{0%{opacity:.7;transform:scale(.72)}70%,100%{opacity:0;transform:scale(1.22)}}
/* 5 Tính tiền: đồng xu lấp lánh, xoay nhẹ */
.a-coin{animation:a-spin 4s ease-in-out infinite}
.th-node:is(:hover,.is-on,:focus-visible) .a-coin{animation-duration:1.6s}
@keyframes a-spin{0%,60%,100%{transform:none}70%{transform:scaleX(.15)}80%{transform:scaleX(-1)}90%{transform:scaleX(.15)}}
.th-node[data-id="tien"] .th-ic::after{content:"";position:absolute;inset:-30%;pointer-events:none;transform:translateX(-130%) rotate(12deg);
  background:linear-gradient(90deg,transparent 35%,rgba(255,240,200,.55) 50%,transparent 65%);animation:a-sheen 4s ease-in-out infinite}
.th-node[data-id="tien"]:is(:hover,.is-on,:focus-visible) .th-ic::after{animation-duration:1.6s}
@keyframes a-sheen{0%,40%{transform:translateX(-130%) rotate(12deg)}80%,100%{transform:translateX(130%) rotate(12deg)}}
/* 6 Số tháng & Bảo lưu: kim đồng hồ trên tờ lịch quay liên tục */
.a-hand{transform-origin:50% 100%!important;animation:a-clock 8s linear infinite}
.a-hand2{transform-origin:0 50%!important;animation:a-clock 48s linear infinite}
.th-node:is(:hover,.is-on,:focus-visible) .a-hand{animation-duration:1.6s}
.th-node:is(:hover,.is-on,:focus-visible) .a-hand2{animation-duration:9.6s}
@keyframes a-clock{to{transform:rotate(360deg)}}
/* 7 Lịch TBVL & Chi tiền: tờ lịch lật nhẹ + chấm ngày phát sáng */
.a-pg{transform-origin:50% 100%!important;animation:a-page 4.2s var(--th-ease) infinite}
.th-node:is(:hover,.is-on,:focus-visible) .a-pg{animation-duration:1.8s}
@keyframes a-page{0%,55%{opacity:1;transform:none}70%{opacity:.35;transform:scaleY(-.9)}71%{opacity:0;transform:scaleY(-.9)}72%{opacity:0;transform:none}88%,100%{opacity:1;transform:none}}
.a-halo{opacity:0;animation:a-halo 2.8s ease-in-out infinite}
.a-dot{animation:a-dot 2.8s ease-in-out infinite}
.th-node:is(:hover,.is-on,:focus-visible) :is(.a-halo,.a-dot){animation-duration:1.4s}
@keyframes a-halo{0%,100%{opacity:0;transform:scale(.6)}55%{opacity:.45;transform:scale(1.35)}}
@keyframes a-dot{0%,100%{transform:none}55%{transform:scale(1.3)}}
/* 8 Mẫu đơn & Chữ ký: ngòi bút tự vẽ nét chữ ký */
.a-sig{stroke-dasharray:1;stroke-dashoffset:0;animation:a-sign 4s ease-in-out infinite}
.a-pen{animation:a-pen 4s ease-in-out infinite}
.th-node:is(:hover,.is-on,:focus-visible) :is(.a-sig,.a-pen){animation-duration:2s}
@keyframes a-sign{0%,10%{stroke-dashoffset:1}62%,88%{stroke-dashoffset:0}100%{stroke-dashoffset:-1}}
@keyframes a-pen{0%,10%{transform:translate(-9px,1.5px)}25%{transform:translate(-6.5px,-.5px)}40%{transform:translate(-4px,1px)}62%,88%{transform:none}100%{transform:translate(-9px,1.5px)}}

/* hộp chọn mẫu đơn (dùng khung hộp thoại của cong_cu_tinh.css, màu theo trang) */
.th-pick .cc-box{width:min(560px,100%);height:auto}
.th-pick-t{flex:1;font-size:17px;font-weight:800;color:var(--ink)}
.th-pick-l{display:grid;gap:10px}
.th-pk{--ac:#EC4899;position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:68px;padding:12px;border-radius:18px;
  border:1px solid var(--rule);background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:border-color .2s,box-shadow .2s}
.th-pk .th-ic{width:42px;height:42px;background:color-mix(in srgb,var(--ac) 16%,transparent);border:1px solid color-mix(in srgb,var(--ac) 30%,transparent)}
.th-pk .th-ic svg{width:26px;height:26px}
.th-pk:hover{border-color:var(--ac);box-shadow:0 0 22px -6px color-mix(in srgb,var(--ac) 55%,transparent)}
.th-pk:focus-visible{outline:3px solid var(--ac);outline-offset:2px}
.th-pk[data-soon]{border-style:dashed}
.th-pk[data-soon] .th-ic{color:var(--muted);background:color-mix(in srgb,var(--muted) 12%,transparent);border-color:transparent}
.th-pk .th-t{flex:1}
.th-pk .th-t small{color:var(--muted)}
.th-pk .th-soon{position:static}
.th-go{font-style:normal;font-size:24px;color:var(--ac)}
/* mỗi mục một màu (data-tone do trang_chu.js gán); mục ký & PDF ở cuối, nền đậm hơn cho nổi */
.th-pk .th-ic{color:var(--ac)}
.th-pk{background:linear-gradient(100deg,color-mix(in srgb,var(--ac) 9%,var(--surface)),var(--surface) 70%)}
.th-pk[data-tone="teal"]{--ac:#0F9488}.th-pk[data-tone="blue"]{--ac:#2563EB}.th-pk[data-tone="red"]{--ac:#DC2626}.th-pk[data-tone="violet"]{--ac:#7C3AED}
:root[data-theme="dark"] .th-pk[data-tone="teal"]{--ac:#5EEAD4}:root[data-theme="dark"] .th-pk[data-tone="blue"]{--ac:#7AA7FF}
:root[data-theme="dark"] .th-pk[data-tone="red"]{--ac:#FF8A8A}:root[data-theme="dark"] .th-pk[data-tone="violet"]{--ac:#C4A5FF}
.th-pk[data-tone="gold"]{--ac:#B8860B}.th-pk[data-tone="plum"]{--ac:#A21CAF}
:root[data-theme="dark"] .th-pk[data-tone="gold"]{--ac:#F2C94C}:root[data-theme="dark"] .th-pk[data-tone="plum"]{--ac:#F0ABFC}
.th-pk[data-tone="violet"]{margin-top:6px;border-color:color-mix(in srgb,var(--ac) 45%,var(--rule));
  background:linear-gradient(100deg,color-mix(in srgb,var(--ac) 20%,var(--surface)),color-mix(in srgb,var(--ac) 6%,var(--surface)))}

/* thông báo nhỏ */
.th-toast{position:fixed;left:50%;bottom:max(18px,env(safe-area-inset-bottom,0px));z-index:95;transform:translateX(-50%);
  width:max-content;max-width:min(520px,calc(100vw - 28px));padding:12px 16px;border-radius:14px;
  background:var(--ink);color:var(--surface);font-size:14.5px;line-height:1.45;box-shadow:0 14px 34px -14px rgba(0,0,0,.5)}
:root[data-theme="dark"] .th-toast{background:rgba(30,17,66,.95);color:#F8FAFC;border:1px solid rgba(192,132,252,.35)}

@media (min-width:760px){.th-grp ul{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:340px){.th-grp ul{grid-template-columns:minmax(0,1fr)}}

/* ===================== QUỸ ĐẠO 360° (màn hình rộng và đủ cao) =====================
   Nhóm .th-grp quay xuôi, từng li quay ngược (trang_chu.js đặt transform/rotate mỗi khung hình) */
@media (min-width:1024px) and (min-height:680px){
  .th-in{padding-top:20px;padding-bottom:30px}
  .th-orbit{--R:clamp(220px,calc(50vh - 140px),290px);--nw:144px;--nh:128px;--core:clamp(196px,calc(var(--R) * .86),240px);
    position:relative;display:block;width:calc(2 * var(--R) + var(--nw));height:calc(2 * var(--R) + var(--nh));margin:0 auto}
  .th-ring{display:block;position:absolute;left:50%;top:50%;width:calc(2 * var(--R));height:calc(2 * var(--R));margin:calc(-1 * var(--R)) 0 0 calc(-1 * var(--R));
    overflow:visible;pointer-events:none;animation:th-spin 160s linear infinite}
  .th-ring circle{fill:none;stroke:var(--th-line);stroke-width:.25;stroke-dasharray:.8 1.6}
  .th-core{position:absolute;left:50%;top:50%;width:var(--core);margin:calc(var(--core) / -2) 0 0 calc(var(--core) / -2);padding:18px;
    --rr1:calc(var(--core) / 2 + 10px);--rr2:calc(var(--core) / 2 + 21px)}
  .th-core b{font-size:clamp(21px,calc(var(--core) * .11),26px)}
  .th-core small{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .th-core.is-peek small{position:relative;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;max-width:82%}
  .th-core.is-peek .th-tea{width:46%}
  .th-grp{position:absolute;inset:0;pointer-events:none;display:block;will-change:transform}
  .th-gh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .th-grp ul{display:block}
  .th-grp li{--a:calc(var(--i) * 45deg);position:absolute;width:var(--nw);height:var(--nh);will-change:rotate;
    left:calc(50% + sin(var(--a)) * var(--R) - var(--nw) / 2);top:calc(50% - cos(var(--a)) * var(--R) - var(--nh) / 2)}
  .th-node{pointer-events:auto;min-height:0;border-radius:26px;padding:12px 8px;gap:10px}
  .th-node .th-t small{display:none}   /* mô tả hiện trong Tâm khi rê chuột / Tab */
  .th-node:is(:hover,.is-on){transform:scale(1.15)}
  .th-node .th-soon{top:-10px;right:-6px}
}
@supports not (left:calc(sin(1deg) * 1px)){   /* trình duyệt cũ chưa có sin/cos: đặt bằng phép xoay, không quay */
  @media (min-width:1024px) and (min-height:680px){
    .th-grp li{left:calc(50% - var(--nw) / 2);top:calc(50% - var(--nh) / 2);
      transform:rotate(var(--a)) translateY(calc(-1 * var(--R))) rotate(calc(-1 * var(--a)))}
  }
}
@keyframes th-spin{to{transform:rotate(360deg)}}

/* ---------- vào trang (sau màn hình chào) ---------- */
@keyframes th-pop{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
@keyframes th-core-in{from{opacity:0;transform:scale(.88)}to{opacity:1;transform:none}}
@keyframes th-fade{from{opacity:0}to{opacity:1}}
.th-enter .th-core{animation:th-core-in .7s .1s var(--th-ease) backwards}
.th-enter .th-node{animation:th-pop .5s calc(.3s + var(--i, 0) * 60ms) var(--th-pop) backwards}
/* ra khỏi màn hình -> tạm dừng mọi chuyển động của trang chủ (đỡ tốn pin) */
.th-hub.th-idle,.th-hub.th-idle *,.th-hub.th-idle *::before,.th-hub.th-idle *::after{animation-play-state:paused!important}

/* ===================== MÀN HÌNH CHÀO: hiên trà sáng, sân vườn nhà thật ===================== */
.th-intro{position:fixed;inset:0;z-index:120;overflow:hidden;cursor:pointer;background:#F3F0E8;animation:th-fade .45s var(--th-ease) both}
/* ảnh phủ kín màn hình, bám đáy (= object-cover object-bottom) + phóng 1,06 và zoom chậm (Ken Burns) */
.th-ibg{position:absolute;left:50%;bottom:0;width:max(100vw,calc(100vh * 1.6552));width:max(100vw,calc(100dvh * 1.6552));aspect-ratio:1920/1160;
  translate:-50% 0;scale:1.06;transform-origin:50% 100%;will-change:transform;animation:th-kb 16s ease-out forwards}
@keyframes th-kb{from{scale:1.06}to{scale:1.12}}
.th-ibg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:bottom}
.th-ibg .th-steam .w{stroke:rgba(255,255,255,.82);stroke-width:2.6}
.th-ibg .s-c1{left:41.3%;width:4.4%;bottom:16.9%;height:21%}
.th-ibg .s-c2{left:46.6%;width:4.4%;bottom:13.1%;height:21%}
.th-ibg .s-c2 .w{animation-delay:-2.2s}
.th-skip{position:absolute;z-index:3;top:max(20px,env(safe-area-inset-top,0px));right:max(20px,env(safe-area-inset-right,0px));
  display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 20px;border-radius:999px;cursor:pointer;
  background:rgba(255,255,255,.88);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(74,46,27,.30);box-shadow:0 4px 12px rgba(74,46,27,.10);
  color:#4A2E1B;font:inherit;font-size:15px;font-weight:600;transition:background-color .2s}
.th-skip span{display:inline-block;transition:transform .25s var(--th-ease)}
.th-skip:hover{background:rgba(255,255,255,.98)}
.th-skip:hover span{transform:translateX(4px)}
.th-skip:focus-visible{outline:3px solid #2D5240;outline-offset:2px}
.th-itext{position:absolute;z-index:2;left:50%;top:13%;translate:-50% 0;width:min(92vw,900px);display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.th-l{margin:0;text-wrap:balance}
.th-l1{font-family:"Dancing Script","Cormorant Garamond",cursive;font-weight:700;font-size:clamp(1.85rem,4vw,3.3rem);line-height:1.2;color:#4A2E1B;
  text-shadow:0 1px 0 rgba(255,255,255,.7),0 0 26px rgba(255,255,255,.9);animation:th-in 1.2s .3s var(--th-ease) both}
.th-rule{display:block;width:84px;height:1.5px;border-radius:2px;background:#C8A27A;transform-origin:50% 50%;animation:th-rule .9s .8s var(--th-ease) both}
.th-l2{font-family:"Lora","Be Vietnam Pro",Georgia,serif;font-style:italic;font-weight:500;font-size:clamp(1rem,1.5vw,1.25rem);line-height:1.65;color:#2D5240;
  text-shadow:0 0 18px rgba(255,255,255,.95);animation:th-in .9s 2.3s var(--th-ease) both}   /* dòng 1 xong ở 1,5 s + nghỉ 0,8 s */
@keyframes th-in{from{opacity:0;filter:blur(8px);transform:translateY(8px)}to{opacity:1;filter:blur(0);transform:none}}
@keyframes th-rule{from{opacity:0;transform:scaleX(0)}to{opacity:1;transform:none}}
@keyframes th-fade-out{from{opacity:1}to{opacity:0}}
.th-intro.th-out{animation:th-fade-out var(--out,.7s) ease forwards;pointer-events:none}
@media (max-width:640px){.th-itext{top:max(13%,92px);width:88vw;gap:12px}}

/* ===================== HỘP CHI TIẾT: KÍNH MỜ TÍM TỐI (nền tối) ===================== */
:root[data-theme="dark"] :is(.cc-dlg,.kp-dlg,.md-dlg,.sdlg,.cmt-modal){background:rgba(8,2,22,.5)!important;
  backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
:root[data-theme="dark"] :is(.cc-box,.kp-box,.md-box){
  --surface:rgba(44,26,92,.55); --surface-2:rgba(58,36,116,.45); --bg:transparent; --rule:rgba(192,132,252,.25);
  background:rgba(18,10,40,.82)!important;border:1px solid rgba(192,132,252,.25);
  backdrop-filter:blur(18px) saturate(1.2);-webkit-backdrop-filter:blur(18px) saturate(1.2);
  box-shadow:0 30px 80px -20px rgba(0,0,0,.7),0 0 70px -30px rgba(168,85,247,.8)!important}
:root[data-theme="dark"] :is(.cc-top,.kp-top,.md-head){background:rgba(30,16,66,.55)!important;border-bottom-color:rgba(192,132,252,.22)!important}
:root[data-theme="dark"] .hd-dlg .cc-top{background:linear-gradient(135deg,color-mix(in srgb,var(--c) 18%,transparent),rgba(30,16,66,.55) 70%)!important}
:root[data-theme="dark"] .md-form{border-right-color:rgba(192,132,252,.22)}
:root[data-theme="dark"] :is(.cc-box,.kp-box,.md-box) :is(input,select,textarea){background-color:rgba(12,5,30,.55)}
:root[data-theme="dark"] :is(.cc-box,.kp-box,.md-box) select option{background:#1E1142;color:#F8FAFC}
/* tab đang chọn + nút hành động chính: chuyển sắc tím sáng, chữ trắng, tỏa sáng nhẹ */
:root[data-theme="dark"] :is(.cc-tabs,.kp-tabs) button[aria-selected="true"],
:root[data-theme="dark"] body.web :is(.tbtn.new,.bubble,.send,.cc-go,.kp-pri,.hd-dots button.on,.md-btn.pri,.md-pri),
:root[data-theme="dark"] body.web .tabs button[aria-selected="true"]{
  background:var(--th-grad)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 8px 24px -10px rgba(168,85,247,.85)!important}
/* trang hỏi đáp: thẻ con theo tông tím */
:root[data-theme="dark"] body.web .ans .example{border-color:color-mix(in srgb,var(--civic) 55%,transparent)}
:root[data-theme="dark"] body.web .qb-btn{border-color:color-mix(in srgb,var(--civic) 60%,transparent)}
/* hình đại diện + hình ở lời chào khung hỏi đáp: bộ ấm trà (thay tách trà vẽ nét) */
body.web .cupmark{background:url("assets/tea-set.png") center/contain no-repeat!important}
body.web .cupmark svg{visibility:hidden}

/* ===================== GIẢM CHUYỂN ĐỘNG ===================== */
@media (prefers-reduced-motion:reduce){
  .th-nb,.th-stars b,.th-shoot,.th-ring,.th-orb,.th-glow,.th-steam .w,.th-ic *,.th-ic::after,.th-ibg{animation:none!important}
  .th-shoot{display:none}
  .th-steam .w{opacity:.5}
  .th-l1,.th-l2,.th-rule{animation-name:th-fade}
  .th-node,.th-core{transition:opacity .2s}
  .th-node:is(:hover,.is-on){transform:none!important}
  .th-menu{animation:none}
}

/* ---------- khung chào giữa trang (tab Hỏi đáp): cụm kính mờ căn giữa (trang_chu.js ART) — chủ trang 06/12/2026 ---------- */
html.th-on body.web .hero>.who3d,html.th-on body.web .hero>h1,html.th-on body.web .hero>.sub,
html.th-on body.web .hero>.or{display:none!important}
/* cột "Câu hỏi thường gặp" đang hiện (màn rộng, không ở chế độ mở rộng) -> bỏ hẳn các nút gợi ý trùng lặp */
@media (min-width:1051px){html.th-on body.web:not(.wide) .hero>.tabs,html.th-on body.web:not(.wide) .hero>.quick{display:none!important}}
/* chỉ có lời chào: khung giữa cao đúng bằng vùng chat, cụm kính nằm giữa theo cả hai chiều, không còn thanh cuộn thừa */
html.th-on body.web .thread:has(>#col>.hero:only-child){display:flex;flex-direction:column}
html.th-on body.web .thread:has(>#col>.hero:only-child)>#col{flex:1 0 auto;display:flex;flex-direction:column}
html.th-on body.web .hero{flex:1 0 auto;justify-content:center;padding:clamp(8px,2vh,20px) 0;gap:0}
html.th-on body.web .hero>.quick{margin-top:22px}
.th-art{--qa-sub:#A79BC9;--qa-c1:#C9B8FF;--qa-c2:#F6D5A3;display:flex;flex-direction:column;align-items:center;text-align:center;
  width:100%;max-width:560px;margin:0 auto}
:root:not([data-theme="dark"]) .th-art{--qa-sub:var(--muted)}
.qa-orb{position:relative;width:clamp(140px,10vw,156px);aspect-ratio:1;max-width:100%;animation:qa-float 7s ease-in-out infinite}
.qa-glow{position:absolute;inset:-46%;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,rgba(176,148,255,.55) 0%,rgba(246,213,163,.18) 40%,rgba(120,90,220,0) 68%);
  animation:qa-breathe 7s ease-in-out infinite}
.qa-ring{position:absolute;inset:0;display:grid;place-items:center;border-radius:50%;overflow:hidden;
  background:radial-gradient(circle at 32% 24%,rgba(255,255,255,.2),rgba(255,255,255,.05) 58%,rgba(255,255,255,.02)),rgba(60,40,130,.22);
  -webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 -14px 28px rgba(150,120,255,.16),0 22px 44px -22px rgba(8,0,36,.85)}
/* viền sáng mảnh: tím nhạt -> vàng champagne */
.qa-ring::before{content:"";position:absolute;inset:0;border-radius:50%;padding:1.5px;pointer-events:none;
  background:linear-gradient(140deg,var(--qa-c1),rgba(255,255,255,.35) 45%,var(--qa-c2));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
/* bóng kính: vệt sáng cong phía trên bên trái */
.qa-ring::after{content:"";position:absolute;left:14%;top:7%;width:46%;height:30%;border-radius:50%;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.3),rgba(255,255,255,0));transform:rotate(-22deg)}
.qa-ring svg{position:relative;width:64%;height:auto;display:block;filter:drop-shadow(0 2px 6px rgba(246,213,163,.25))}
.qa-title{margin:22px 0 0;font-size:clamp(26px,2vw,30px);font-weight:800;line-height:1.2;letter-spacing:-.01em;color:var(--ink);text-wrap:balance}
.qa-sub{margin:9px 0 0;font-size:14.5px;line-height:1.5;color:var(--qa-sub);text-wrap:balance}
.qa-d{display:none}
@media (max-width:1050px){.qa-l{display:none}.qa-d{display:inline}}
body.wide .qa-l{display:none}
body.wide .qa-d{display:inline}
/* nền sáng: vòng kính tím đậm để biểu tượng trắng vẫn rõ */
:root:not([data-theme="dark"]) .qa-ring{background:radial-gradient(circle at 32% 24%,rgba(255,255,255,.26),rgba(255,255,255,0) 60%),linear-gradient(150deg,#6D4FD6,#3B2585)}
@keyframes qa-float{0%,100%{transform:translateY(-5px)}50%{transform:translateY(6px)}}
@keyframes qa-breathe{0%,100%{opacity:.7;transform:scale(.94)}50%{opacity:1;transform:scale(1.06)}}
@media (prefers-reduced-motion:reduce){.qa-orb,.qa-glow{animation:none}}
@media (max-width:640px){.qa-title{font-size:24px}.qa-orb{width:128px}}
