/* Chùa Việt · ô chat "Hỏi chùa" (assets/js/tro-ly.js). Bố cục theo trợ lý Market Hub, màu gỗ trầm – vàng đồng của chùa. */
#hc-goc{--hc-nen:#140b05;--hc-the:#22140a;--hc-vien:rgba(222,176,98,.22);--hc-chu:#f3e7cd;--hc-mo:#cdb891;--hc-vang:linear-gradient(135deg,#fbe3b1,#f2c26c 45%,#c98a35);
  position:fixed;right:82px;bottom:18px;z-index:72;font-family:"Be Vietnam Pro",system-ui,sans-serif;color:var(--hc-chu)}
#hc-goc *{box-sizing:border-box}
.hc-nut{display:flex;align-items:center;gap:8px;margin-left:auto;height:52px;padding:0 20px;border:0;border-radius:999px;background:var(--hc-vang);color:#1d1006;font:700 15px/1 inherit;cursor:pointer;box-shadow:0 12px 30px -10px rgba(217,154,43,.8),inset 0 1px rgba(255,255,255,.5);position:relative;animation:hc-moi 4.5s ease-in-out infinite 3s}
.hc-nut:hover{filter:brightness(1.06)}
.dang-mo .hc-nut{animation:none}
@keyframes hc-moi{0%,86%,100%{transform:none}90%{transform:translateY(-4px) rotate(-2deg)}94%{transform:translateY(0) rotate(1.5deg)}}
.hc-nut:focus-visible,#hc-goc button:focus-visible,#hc-goc a:focus-visible,#hc-goc textarea:focus-visible{outline:2px solid #fbe3b1;outline-offset:2px}
.hc-khung{position:absolute;right:0;bottom:64px;display:flex;flex-direction:column;width:min(400px,calc(100vw - 32px));height:min(620px,calc(100dvh - 110px));overflow:hidden;border:1px solid var(--hc-vien);border-radius:22px;background:linear-gradient(180deg,#1d1109,#120a04);box-shadow:0 30px 70px -20px rgba(0,0,0,.85),inset 0 1px 0 rgba(255,221,155,.12);animation:hc-hien .28s cubic-bezier(.2,.8,.2,1)}
.hc-khung[hidden]{display:none}
@keyframes hc-hien{from{opacity:0;transform:translateY(12px) scale(.97)}}
.hc-dau{display:flex;align-items:center;gap:12px;padding:15px 15px 13px;border-bottom:1px solid var(--hc-vien);background:radial-gradient(120% 140% at 0 0,rgba(233,195,123,.14),transparent 60%),#1a0f07}
.hc-dau>div{flex:1;min-width:0}
.hc-dau b{display:block;font:500 16px/1.25 "Noto Serif",serif;color:#f6d98f}
.hc-dau small{display:block;margin-top:3px;color:var(--hc-mo);font-size:12px}
.hc-anh{position:relative;display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:12px;background:var(--hc-vang);color:#1d1006}
.hc-anh i{position:absolute;right:-2px;bottom:-2px;width:11px;height:11px;border:2px solid #1a0f07;border-radius:50%;background:#7bc77e}
.hc-x{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:var(--hc-mo);cursor:pointer}
.hc-x:hover{background:rgba(255,236,190,.08);color:var(--hc-chu)}
.hc-than{flex:1;overflow-y:auto;padding:16px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b8873c transparent}
.hc-dong{display:flex;gap:8px;margin-bottom:12px;animation:hc-vao .3s ease both}
@keyframes hc-vao{from{opacity:0;transform:translateY(6px)}}
.hc-nd{justify-content:flex-end}
.hc-nho{display:grid;place-items:center;flex:none;width:28px;height:28px;margin-top:2px;border-radius:9px;background:rgba(233,195,123,.14);color:#e9c37b}
.hc-nho svg{width:16px;height:16px}
.hc-tin{max-width:84%;padding:10px 13px;border-radius:16px;font-size:14.5px;line-height:1.6;word-wrap:break-word}
.hc-tl .hc-tin{border:1px solid var(--hc-vien);border-top-left-radius:6px;background:var(--hc-the)}
.hc-nd .hc-tin{border-top-right-radius:6px;background:var(--hc-vang);color:#1d1006}
.hc-tin b{color:#f6d98f;font-weight:600}
.hc-nd .hc-tin b{color:inherit}
.hc-tin a{color:#f6d98f;text-decoration:underline;text-underline-offset:2px}
.hc-li{display:block;position:relative;padding-left:14px;margin-top:3px}
.hc-li::before{content:"";position:absolute;left:2px;top:.65em;width:5px;height:5px;border-radius:50%;background:#e9c37b}
.hc-dang-go .hc-tin{letter-spacing:3px;animation:hc-cho 1s ease-in-out infinite}
@keyframes hc-cho{50%{opacity:.35}}
.hc-goi{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 14px 36px}
.hc-chip{min-height:36px;padding:7px 12px;border:1px solid var(--hc-vien);border-radius:999px;background:rgba(34,20,10,.8);color:var(--hc-chu);font:13px/1.35 inherit;text-align:left;cursor:pointer;transition:border-color .2s,background .2s,transform .2s}
.hc-chip:hover{border-color:#e9c37b;background:rgba(99,62,28,.6);transform:translateY(-1px)}
.hc-o{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid var(--hc-vien);background:#160d06}
.hc-o textarea{flex:1;min-height:42px;max-height:120px;resize:none;padding:10px 12px;border:1px solid var(--hc-vien);border-radius:12px;background:rgba(10,5,2,.7);color:var(--hc-chu);font:14.5px/1.45 inherit}
.hc-o textarea::placeholder{color:#a08b68}
.hc-o textarea:focus{border-color:#e9c37b;outline:none}
.hc-o button{display:grid;place-items:center;flex:none;width:42px;height:42px;border:0;border-radius:12px;background:var(--hc-vang);color:#1d1006;cursor:pointer}
.hc-nguoi{display:flex;align-items:center;gap:8px;padding:9px 12px;border-top:1px solid var(--hc-vien)}
.hc-nguoi>a:first-child{flex:1;display:flex;align-items:center;gap:10px;min-width:0;padding:6px 8px;border-radius:12px;color:var(--hc-chu);text-decoration:none;transition:background .2s}
.hc-nguoi>a:first-child:hover{background:rgba(233,195,123,.08)}
.hc-nguoi>a:first-child>span{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:rgba(233,195,123,.14);color:#e9c37b}
.hc-nguoi>a:first-child>span svg{width:18px;height:18px}
.hc-nguoi b{display:block;font-size:13px;font-weight:600}
.hc-nguoi small{display:block;font-size:11.5px;color:var(--hc-mo)}
.hc-phu{flex:none;min-height:36px;display:grid;place-items:center;padding:0 12px;border:1px solid var(--hc-vien);border-radius:999px;color:#e9c37b;font-size:12.5px;text-decoration:none}
.hc-chan{margin:0;padding:7px 14px 11px;color:#a08b68;font-size:11px;line-height:1.45;text-align:center}
@media (max-width:560px){
  #hc-goc{right:78px;bottom:18px}
  .hc-nut{width:52px;padding:0;justify-content:center}
  .hc-nut span{display:none}
  .hc-khung{position:fixed;left:10px;right:10px;bottom:80px;width:auto;height:min(76dvh,620px)}
}
@media (prefers-reduced-motion:reduce){.hc-nut,.hc-khung,.hc-dong,.hc-dang-go .hc-tin{animation:none}}
.it-dong .hc-nut,.it-dong .hc-khung,.it-dong .hc-dong{animation:none}
