/* TVHK Core – thành phần giao diện (dùng biến màu của theme TVHK, có giá trị dự phòng). */
:root{
	--tv-pastel:#DCF4FB;--tv-blue:#258FDA;--tv-navy:#1674B8;--tv-light:#8CCCF4;--tv-white:#FCFCFC;--tv-pink:#FCECEC;--tv-gray:#C4C4C4;--tv-black:#040404;
	--tv-text:#1d2633;--tv-muted:#5d6b7a;--tv-line:#e3eaf0;--tv-radius:14px;--tv-radius-sm:10px;--tv-shadow:0 6px 24px rgba(22,116,184,.10);
	--tv-danger:#c0392b;--tv-ok:#1f8a5b;
}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.tvhk-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.tvhk-muted{color:var(--tv-muted);font-size:.875rem}
.tvhk-center{text-align:center}
.tvhk-eyebrow{margin:0 0 4px;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--tv-navy)}
.tvhk-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border:1px solid var(--tv-navy);border-radius:999px;background:var(--tv-navy);color:#fff;font-weight:700;font-size:.95rem;line-height:1.1;text-decoration:none;cursor:pointer;transition:background .2s,transform .2s}
.tvhk-btn:hover{background:var(--tv-blue);border-color:var(--tv-blue);color:#fff}
.tvhk-btn:focus-visible,.tvhk-link:focus-visible,.tvhk-chip:focus-visible{outline:3px solid var(--tv-light);outline-offset:2px}
.tvhk-btn--ghost{background:#fff;color:var(--tv-navy)}
.tvhk-btn--ghost:hover{background:var(--tv-pastel);color:var(--tv-navy)}
.tvhk-btn--block{display:flex;width:100%}
.tvhk-btn--sm{min-height:36px;padding:0 14px;font-size:.875rem;border-radius:10px}
.tvhk-link{background:none;border:0;padding:0;color:var(--tv-blue);font:inherit;font-weight:600;cursor:pointer;text-decoration:none}
.tvhk-card{background:#fff;border:1px solid var(--tv-line);border-radius:var(--tv-radius);padding:22px;box-shadow:0 1px 0 rgba(0,0,0,.02)}
.tvhk-card--tint{background:linear-gradient(135deg,var(--tv-pastel),#fff 70%,var(--tv-pink));border-color:#cfe9f5}
.tvhk-card h2{margin:0 0 10px;font-size:1.25rem;line-height:1.3}
.tvhk-chip{display:inline-flex;align-items:center;min-height:32px;padding:4px 12px;border:1px solid var(--tv-line);border-radius:999px;background:#fff;color:var(--tv-text);font-size:.8rem;cursor:pointer}
.tvhk-chip.is-active,.tvhk-chips .tvhk-chip{background:var(--tv-pastel);border-color:#bfe3f3;color:var(--tv-navy)}
.tvhk-chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.tvhk-notice{padding:12px 16px;border-radius:var(--tv-radius-sm);background:var(--tv-pastel);color:var(--tv-navy)}
.tvhk-alert{padding:12px 16px;border-radius:var(--tv-radius-sm);background:#fdecea;color:var(--tv-danger);margin:12px 0}
.tvhk-badge-num{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--tv-blue);color:#fff;font-size:.7rem}

/* Toast */
.tvhk-toast{position:fixed;left:50%;bottom:calc(88px + env(safe-area-inset-bottom));transform:translate(-50%,20px);z-index:100000;max-width:min(92vw,420px);padding:12px 18px;border-radius:12px;background:var(--tv-black);color:#fff;font-size:.9rem;opacity:0;pointer-events:none;transition:.25s}
.tvhk-toast.is-show{opacity:1;transform:translate(-50%,0)}
.tvhk-toast.is-error{background:var(--tv-danger)}

/* Form */
.tvhk-form p{margin:0 0 14px}
.tvhk-form label{display:block;margin-bottom:6px;font-weight:600;font-size:.9rem}
.tvhk-form input[type=text],.tvhk-form input[type=tel],.tvhk-form input[type=email],.tvhk-form input[type=date],.tvhk-form input[type=number],.tvhk-form textarea,.tvhk-form select{width:100%;min-height:46px;padding:10px 14px;border:1px solid var(--tv-line);border-radius:10px;background:#fff;font:inherit;color:var(--tv-text)}
.tvhk-form textarea{min-height:110px;resize:vertical}
.tvhk-form input:focus,.tvhk-form textarea:focus{outline:none;border-color:var(--tv-blue);box-shadow:0 0 0 3px rgba(37,143,218,.18)}
.tvhk-form__row{display:grid;gap:14px;grid-template-columns:1fr}
@media(min-width:640px){.tvhk-form__row{grid-template-columns:1fr 1fr}}
.tvhk-form .req{color:var(--tv-blue)}
.tvhk-form .opt{color:var(--tv-muted);font-weight:400}
.tvhk-choice{border:0;margin:0 0 14px;padding:0;display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.tvhk-choice legend{font-weight:600;margin-bottom:8px;font-size:.9rem}
.tvhk-choice label{display:flex;align-items:center;gap:10px;min-height:48px;margin:0;padding:10px 14px;border:1px solid var(--tv-line);border-radius:10px;font-weight:500;cursor:pointer}
.tvhk-choice label:has(input:checked){border-color:var(--tv-blue);background:var(--tv-pastel)}
.tvhk-consent{display:flex!important;gap:10px;align-items:flex-start;font-weight:400!important;font-size:.85rem!important;margin:4px 0 16px!important}
.tvhk-consent input{margin-top:3px}
.tvhk-upload{margin-bottom:16px}
.tvhk-upload input[type=file]{position:absolute;opacity:0;width:1px;height:1px}
.tvhk-upload__btn{display:flex!important;align-items:center;justify-content:center;gap:8px;min-height:48px;border:1px dashed var(--tv-blue);border-radius:10px;background:var(--tv-pastel);color:var(--tv-navy);cursor:pointer}
.tvhk-upload__preview{display:flex;gap:8px;margin:8px 0}
.tvhk-upload__preview img{width:72px;height:72px;object-fit:cover;border-radius:8px}
.tvhk-consult{max-width:640px;margin-inline:auto}
.tvhk-consult-done{text-align:center;max-width:560px;margin-inline:auto}
.tvhk-consult-done__icon{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--tv-pastel);color:var(--tv-navy)}

/* Voucher */
.tvhk-voucher{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:260px;padding:14px 16px;border:1px solid #cfe9f5;border-radius:var(--tv-radius-sm);background:linear-gradient(120deg,var(--tv-pastel),#fff)}
.tvhk-voucher--pink{background:linear-gradient(120deg,var(--tv-pink),#fff);border-color:#f3d6d6}
.tvhk-voucher--white{background:#fff}
.tvhk-voucher__info{display:grid;gap:2px;min-width:0}
.tvhk-voucher__title{font-size:1.05rem;font-weight:800;color:var(--tv-black);text-transform:uppercase}
.tvhk-voucher__sub{font-size:.8rem;color:var(--tv-muted)}
.tvhk-voucher__meta{font-size:.72rem;color:var(--tv-muted)}
.tvhk-voucher__meta code{font-size:.72rem;background:none;padding:0;color:var(--tv-navy);font-weight:700}
.tvhk-voucher__act{display:flex;align-items:center;gap:6px}
.tvhk-voucher__btn{min-height:40px;padding:0 14px;border:1.5px solid var(--tv-navy);border-radius:8px;background:#fff;color:var(--tv-navy);font-weight:700;font-size:.8rem;cursor:pointer;white-space:nowrap}
.tvhk-voucher__btn:disabled{opacity:.7;cursor:default;background:var(--tv-pastel)}
.tvhk-voucher__copy{display:grid;place-items:center;width:36px;height:40px;border:0;border-radius:8px;background:transparent;color:var(--tv-muted);cursor:pointer}
.tvhk-voucher-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.tvhk-scroll-x{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:4px}
.tvhk-scroll-x::-webkit-scrollbar{display:none}
.tvhk-scroll-x>*{scroll-snap-align:start;flex:0 0 auto}
.tvhk-pv{margin:16px 0}
.tvhk-pv__head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px;font-size:.9rem}
.tvhk-pv__head span{font-size:.75rem;color:var(--tv-muted)}
.tvhk-pv .tvhk-voucher{min-width:230px;flex-direction:column;align-items:flex-start}
.tvhk-cart-vouchers{margin:0 0 18px;border:1px solid var(--tv-line);border-radius:var(--tv-radius-sm);background:#fff}
.tvhk-cart-vouchers summary{display:flex;align-items:center;gap:8px;padding:14px 16px;font-weight:700;cursor:pointer;color:var(--tv-navy)}
.tvhk-cart-vouchers__list{display:grid;gap:10px;padding:0 16px 16px}

/* Quà tặng, điểm, flash */
.tvhk-gift{margin:16px 0;padding:14px 16px;border:1px solid #f3d6d6;border-radius:var(--tv-radius-sm);background:var(--tv-pink)}
.tvhk-gift__head{margin-bottom:10px;color:#a14a4a}
.tvhk-gift__item{display:flex;gap:12px;align-items:center}
.tvhk-gift__img{width:48px;height:48px;border-radius:8px;object-fit:cover;background:#fff;display:grid;place-items:center;color:#a14a4a}
.tvhk-gift__name{font-weight:600}
.tvhk-gift__meta{font-size:.78rem;color:var(--tv-muted)}
.tvhk-gift__cond{margin-top:10px;font-size:.8rem;color:var(--tv-muted)}
.tvhk-gift__cond summary{cursor:pointer;font-weight:600}
.tvhk-points-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0;font-size:.85rem;color:var(--tv-muted)}
.tvhk-points-line strong{color:var(--tv-navy)}
.tvhk-points-line a{margin-left:auto;color:var(--tv-blue);font-size:.8rem}
.tvhk-flashbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px;padding:10px 14px;border-radius:10px;background:linear-gradient(90deg,#ffe6e6,var(--tv-pink));color:#b03a3a;font-size:.9rem}
.tvhk-countdown{display:inline-flex;align-items:center;gap:4px;font-variant-numeric:tabular-nums}
.tvhk-countdown span{display:inline-grid;place-items:center;min-width:34px;height:30px;padding:0 4px;border:1px solid #cfe2f0;border-radius:8px;background:#fff;color:var(--tv-navy);font-weight:800;font-size:.9rem}
.tvhk-countdown i{font-style:normal;font-weight:700;color:var(--tv-navy)}
.tvhk-points-hero__num{font-size:2rem;font-weight:800;margin:4px 0;color:var(--tv-navy)}
.tvhk-rules{padding-left:18px;color:var(--tv-text);line-height:1.7}
.tvhk-table{width:100%;border-collapse:collapse;font-size:.9rem}
.tvhk-table th,.tvhk-table td{padding:10px;border-bottom:1px solid var(--tv-line);text-align:left}
.tvhk-table .is-plus{color:var(--tv-ok);font-weight:700}
.tvhk-table .is-minus{color:var(--tv-danger);font-weight:700}

/* Switch dùng điểm */
.tvhk-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:10px;background:var(--tv-pink);cursor:pointer}
.tvhk-switch span{display:grid;gap:2px}
.tvhk-switch small{color:var(--tv-muted);font-size:.78rem}
.tvhk-switch input{position:absolute;opacity:0}
.tvhk-switch i{position:relative;flex:0 0 46px;height:26px;border-radius:999px;background:var(--tv-gray);transition:.2s}
.tvhk-switch i::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s}
.tvhk-switch input:checked+i{background:var(--tv-navy)}
.tvhk-switch input:checked+i::after{left:23px}
.tvhk-switch input:focus-visible+i{outline:3px solid var(--tv-light)}
.tvhk-switch.is-disabled{opacity:.6;cursor:not-allowed}

/* Bộ lọc */
.tvhk-filters{display:grid;gap:4px}
.tvhk-filter{border-bottom:1px solid var(--tv-line);padding:12px 0}
.tvhk-filter summary{display:flex;justify-content:space-between;align-items:center;font-weight:700;cursor:pointer;list-style:none;min-height:32px}
.tvhk-filter summary::-webkit-details-marker{display:none}
.tvhk-filter summary::after{content:"+";color:var(--tv-blue);font-weight:400}
.tvhk-filter[open] summary::after{content:"–"}
.tvhk-filter__price{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.tvhk-filter__price input{width:100%;min-height:42px;padding:8px 10px;border:1px solid var(--tv-line);border-radius:10px;font:inherit}
.tvhk-filter__presets{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.tvhk-filter__list{display:grid;gap:2px;margin-top:8px}
.tvhk-filter__list.is-long{max-height:240px;overflow:auto}
.tvhk-filter__list label{display:flex;align-items:center;gap:10px;min-height:36px;font-size:.92rem;cursor:pointer}
.tvhk-filter__list input{width:18px;height:18px;accent-color:var(--tv-navy)}
.tvhk-filters__actions{position:sticky;bottom:0;display:grid;grid-template-columns:1fr 2fr;gap:8px;padding:12px 0 4px;background:#fff}

/* Breadcrumb, FAQ, TOC, tác giả */
.tvhk-breadcrumb ol{display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:0;list-style:none;font-size:.85rem;color:var(--tv-muted)}
.tvhk-breadcrumb li+li::before{content:"/";margin-right:4px;color:var(--tv-gray)}
.tvhk-breadcrumb a{color:var(--tv-muted);text-decoration:none}
.tvhk-breadcrumb a:hover{color:var(--tv-blue)}
.tvhk-faq{display:grid;gap:10px}
.tvhk-faq__item{border:1px solid var(--tv-line);border-radius:var(--tv-radius-sm);background:#fff}
.tvhk-faq__item summary{display:flex;justify-content:space-between;gap:12px;padding:14px 16px;cursor:pointer;list-style:none}
.tvhk-faq__item summary::-webkit-details-marker{display:none}
.tvhk-faq__item summary::after{content:"+";color:var(--tv-blue);font-size:1.2rem;line-height:1}
.tvhk-faq__item[open] summary::after{content:"–"}
.tvhk-faq__q{margin:0;font-size:1rem;font-weight:700}
.tvhk-faq__a{padding:0 16px 14px;color:var(--tv-text)}
.tvhk-faq__a p{margin:0 0 8px}
.tvhk-toc{margin:0 0 24px;padding:14px 18px;border-radius:var(--tv-radius-sm);background:var(--tv-pastel)}
.tvhk-toc summary{font-weight:700;cursor:pointer}
.tvhk-toc ol{margin:10px 0 0;padding-left:20px}
.tvhk-toc .lvl-3{margin-left:16px;list-style:circle}
.tvhk-byline{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:.85rem;color:var(--tv-muted)}
.tvhk-author{display:flex;gap:14px;margin:32px 0;padding:18px;border-radius:var(--tv-radius);background:var(--tv-pastel)}
.tvhk-author img{border-radius:50%}
.tvhk-author__name{font-weight:700}
.tvhk-author__job{font-size:.85rem;color:var(--tv-navy)}
.tvhk-author p{margin:6px 0 0;font-size:.9rem}
.tvhk-info-table{width:100%;border-collapse:collapse}
.tvhk-info-table th,.tvhk-info-table td{padding:12px 0;border-bottom:1px solid var(--tv-line);text-align:left;vertical-align:top;font-size:.92rem}
.tvhk-info-table th{width:40%;color:var(--tv-muted);font-weight:500}
.tvhk-note{font-size:.8rem;color:var(--tv-muted)}
.tvhk-inci{font-size:.85rem;color:var(--tv-muted);line-height:1.7}

/* Hồ sơ da, đơn hàng */
.tvhk-skin__grid,.tvhk-track{display:grid;gap:18px}
@media(min-width:960px){.tvhk-skin__grid,.tvhk-track{grid-template-columns:1.55fr 1fr;align-items:start}}
.tvhk-skin__main,.tvhk-skin__side,.tvhk-track__main,.tvhk-track__side{display:grid;gap:18px}
.tvhk-skin__head{display:flex;align-items:center;gap:14px;justify-content:space-between}
.tvhk-skin__head>div{flex:1}
.tvhk-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--tv-pastel);color:var(--tv-navy);font-weight:700;font-size:1.2rem}
.tvhk-skin__facts{display:grid;gap:10px;grid-template-columns:1fr 1fr;margin:14px 0 0;padding-top:14px;border-top:1px solid var(--tv-line)}
.tvhk-skin__facts--col{grid-template-columns:1fr;border:0;padding:0}
.tvhk-skin__facts dt{font-size:.78rem;color:var(--tv-muted)}
.tvhk-skin__facts dd{margin:2px 0 0;font-weight:600}
.tvhk-timeline{list-style:none;margin:14px 0 0;padding:0 0 0 18px;border-left:2px solid var(--tv-pastel)}
.tvhk-timeline li{position:relative;padding:0 0 16px 10px}
.tvhk-timeline li::before{content:"";position:absolute;left:-25px;top:5px;width:10px;height:10px;border-radius:50%;background:var(--tv-blue)}
.tvhk-timeline time{display:block;font-size:.78rem;color:var(--tv-muted)}
.tvhk-timeline p{margin:4px 0 0;font-size:.88rem;color:var(--tv-muted)}
.tvhk-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.tvhk-compare__slot{margin:0;aspect-ratio:3/4;border:1px solid var(--tv-line);border-radius:12px;background:linear-gradient(160deg,var(--tv-pastel),#fff,var(--tv-pink));display:grid;place-items:center;overflow:hidden;position:relative}
.tvhk-compare__slot img{width:100%;height:100%;object-fit:cover}
.tvhk-compare__slot figcaption{position:absolute;bottom:8px;left:8px;padding:3px 8px;border-radius:999px;background:rgba(255,255,255,.9);font-size:.75rem;font-weight:600}
.tvhk-compare__ph{color:var(--tv-light)}
.tvhk-journey{list-style:none;margin:16px 0;padding:0}
.tvhk-journey li{position:relative;padding:0 0 18px 32px}
.tvhk-journey li::before{content:"";position:absolute;left:5px;top:4px;width:14px;height:14px;border-radius:50%;background:#dbe6ef;box-shadow:0 0 0 4px #fff}
.tvhk-journey li::after{content:"";position:absolute;left:11px;top:20px;bottom:0;width:2px;background:#e3eaf0}
.tvhk-journey li:last-child::after{display:none}
.tvhk-journey li.is-done::before,.tvhk-journey li.is-current::before{background:var(--tv-blue)}
.tvhk-journey li.is-done::after{background:var(--tv-light)}
.tvhk-journey li.is-current::before{box-shadow:0 0 0 4px rgba(37,143,218,.2)}
.tvhk-journey li.is-current strong{color:var(--tv-blue)}
.tvhk-journey li.is-warn.is-current::before{background:#e08a00}
.tvhk-journey li.is-todo{color:var(--tv-muted)}
.tvhk-journey time{display:block;font-size:.78rem;color:var(--tv-muted)}
.tvhk-journey p{margin:2px 0 0;font-size:.85rem;color:var(--tv-muted)}
.tvhk-kv{display:grid;gap:8px;margin:0;padding-top:14px;border-top:1px solid var(--tv-line)}
.tvhk-kv>div{display:flex;justify-content:space-between;gap:12px;font-size:.88rem}
.tvhk-kv dt{color:var(--tv-muted)}
.tvhk-kv dd{margin:0;text-align:right;font-weight:600}
.tvhk-track-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.tvhk-qr{text-align:center;max-width:420px;margin:20px auto}
.tvhk-qr img{max-width:100%;height:auto;border-radius:12px}

/* Dialog dùng chung */
.tvhk-dialog,.tvhk-popup{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 40px);padding:0;border:0;border-radius:18px;box-shadow:0 20px 60px rgba(4,4,4,.25)}
.tvhk-dialog::backdrop,.tvhk-popup::backdrop{background:rgba(9,36,58,.45);backdrop-filter:blur(3px)}
.tvhk-dialog form{padding:22px}
.tvhk-dialog__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.tvhk-dialog__head h2{margin:0;font-size:1.2rem}
.tvhk-dialog__x,.tvhk-popup__x{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:var(--tv-pastel);color:var(--tv-navy);cursor:pointer}
.tvhk-popup{width:min(420px,calc(100vw - 32px))}
.tvhk-popup__x{position:absolute;top:10px;right:10px;z-index:1}
.tvhk-popup__img{display:block;width:100%;height:auto}
.tvhk-popup__body{padding:20px}
.tvhk-popup__body h2{margin:0 0 6px;font-size:1.25rem}

/* Đăng ký ưu đãi */
.tvhk-lead{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.tvhk-lead input[type=text]{flex:1 1 240px;min-height:48px;padding:0 18px;border:1px solid var(--tv-gray);border-radius:999px;font:inherit;background:#fff}
.tvhk-lead__msg{flex-basis:100%;margin:0;font-size:.85rem;text-align:center}
.tvhk-lead__msg.is-ok{color:var(--tv-ok)}
.tvhk-lead__msg.is-err{color:var(--tv-danger)}

/* Gợi ý địa chỉ */
.tvhk-addr-smart{position:relative}
.tvhk-addr-list{position:absolute;left:0;right:0;top:100%;z-index:20;margin:4px 0 0;padding:6px;list-style:none;background:#fff;border:1px solid var(--tv-line);border-radius:12px;box-shadow:var(--tv-shadow);max-height:300px;overflow:auto}
.tvhk-addr-list li{padding:10px 12px;border-radius:8px;cursor:pointer;font-size:.9rem}
.tvhk-addr-list li:hover,.tvhk-addr-list li:focus{background:var(--tv-pastel);outline:none}
.tvhk-hidden-field{display:none!important}

/* Trợ lý */
.tvhk-ai-fab{position:fixed;right:16px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:9990;display:flex;align-items:center;gap:10px;padding:8px 18px 8px 8px;border:0;border-radius:999px;background:var(--tv-navy);color:#fff;box-shadow:0 10px 30px rgba(22,116,184,.35);cursor:pointer;text-align:left}
.tvhk-ai-fab__ico{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.18)}
.tvhk-ai-fab__txt{display:grid;line-height:1.15}
.tvhk-ai-fab__txt small{font-size:.7rem;opacity:.85}
@media(max-width:767px){.tvhk-ai-fab{padding:8px;bottom:calc(76px + env(safe-area-inset-bottom))}.tvhk-ai-fab__txt{display:none}}
@media(min-width:1024px){.tvhk-ai-fab{bottom:24px}}
.tvhk-ai{position:fixed;right:16px;bottom:16px;z-index:9995;display:flex;flex-direction:column;width:min(420px,calc(100vw - 32px));height:min(680px,calc(100dvh - 32px));border-radius:22px;background:#f6fbfe;box-shadow:0 24px 60px rgba(4,4,4,.22);overflow:hidden}
.tvhk-ai[hidden]{display:none}
@media(max-width:767px){.tvhk-ai{inset:0;width:100%;height:100dvh;border-radius:0}}
.tvhk-ai__head{display:flex;align-items:center;gap:10px;padding:14px 14px 12px;background:#fff;border-bottom:1px solid var(--tv-line)}
.tvhk-ai__head>div{flex:1;min-width:0}
.tvhk-ai__logo{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--tv-pastel);color:var(--tv-navy)}
.tvhk-ai__brand{margin:0;font-size:.62rem;letter-spacing:.06em;color:var(--tv-muted);text-transform:uppercase}
.tvhk-ai__head h2{margin:0;font-size:1.05rem}
.tvhk-ai__status{margin:0;font-size:.72rem;color:var(--tv-muted)}
.tvhk-ai__status::before{content:"";display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:var(--tv-ok)}
.tvhk-ai__btn{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;background:transparent;color:var(--tv-muted);cursor:pointer}
.tvhk-ai__btn:hover{background:var(--tv-pastel);color:var(--tv-navy)}
.tvhk-ai__body{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain}
.tvhk-ai__who{margin:0 0 4px;font-size:.7rem;color:var(--tv-muted)}
.tvhk-ai__msg{max-width:92%;padding:12px 14px;border-radius:16px;background:#fff;border:1px solid var(--tv-line);font-size:.92rem;line-height:1.5}
.tvhk-ai__msg p{margin:0 0 8px}
.tvhk-ai__msg.is-user{align-self:flex-end;background:var(--tv-navy);border-color:var(--tv-navy);color:#fff;border-bottom-right-radius:4px}
.tvhk-ai__chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.tvhk-ai__chip{min-height:38px;padding:6px 14px;border:1px solid #bfe0f2;border-radius:999px;background:#fff;color:var(--tv-navy);font:inherit;font-size:.85rem;cursor:pointer}
.tvhk-ai__chip:hover:not(:disabled){background:var(--tv-pastel)}
.tvhk-ai__chip:disabled{opacity:.55;cursor:default}
.tvhk-ai__tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.tvhk-ai__tags span{padding:3px 8px;border-radius:6px;background:var(--tv-pastel);font-size:.72rem;color:var(--tv-navy)}
.tvhk-ai__card{display:flex;gap:12px;margin:8px 0;padding:10px;border:1px solid var(--tv-line);border-radius:12px;background:#fff}
.tvhk-ai__card img{width:72px;height:72px;object-fit:cover;border-radius:10px;flex:0 0 auto}
.tvhk-ai__card h3{margin:0;font-size:.9rem;line-height:1.3}
.tvhk-ai__card .tvhk-ai__brand{margin:0}
.tvhk-ai__price{margin:4px 0!important;font-weight:800;color:var(--tv-navy)}
.tvhk-ai__cardact{display:flex;gap:12px;font-size:.8rem}
.tvhk-ai__cardact a{color:var(--tv-blue);font-weight:600;text-decoration:none}
.tvhk-ai__note{font-size:.75rem;color:var(--tv-muted)}
.tvhk-ai__routine{margin:0;padding-left:18px}
.tvhk-ai__muted{display:block;font-size:.8rem;color:var(--tv-muted)}
.tvhk-ai__sec{margin-top:8px;border-top:1px solid var(--tv-line);padding-top:8px}
.tvhk-ai__sec summary{font-weight:600;cursor:pointer}
.tvhk-ai__offer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:6px 0;padding:10px;border-radius:10px;background:var(--tv-pastel)}
.tvhk-ai__offer div{display:grid}
.tvhk-ai__offer small{color:var(--tv-muted)}
.tvhk-ai__offer button{min-height:36px;padding:0 12px;border:1px solid var(--tv-navy);border-radius:8px;background:#fff;color:var(--tv-navy);font-weight:700;cursor:pointer}
.tvhk-ai__links{display:grid;gap:8px;margin-top:8px}
.tvhk-ai__link{display:flex;align-items:center;justify-content:center;min-height:42px;border-radius:10px;background:var(--tv-pastel);color:var(--tv-navy);font-weight:700;text-decoration:none}
.tvhk-ai__typing{display:flex;gap:4px;padding:12px 14px;width:60px;border-radius:16px;background:#fff;border:1px solid var(--tv-line)}
.tvhk-ai__typing i{width:7px;height:7px;border-radius:50%;background:var(--tv-light);animation:tvhkDot 1s infinite}
.tvhk-ai__typing i:nth-child(2){animation-delay:.15s}.tvhk-ai__typing i:nth-child(3){animation-delay:.3s}
@keyframes tvhkDot{0%,80%,100%{opacity:.3}40%{opacity:1}}
.tvhk-ai__input{display:flex;gap:8px;padding:10px 12px;background:#fff;border-top:1px solid var(--tv-line)}
.tvhk-ai__input input{flex:1;min-height:44px;padding:0 16px;border:1px solid var(--tv-line);border-radius:999px;font:inherit;font-size:16px}
.tvhk-ai__input button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:var(--tv-navy);color:#fff;cursor:pointer}
.tvhk-ai__foot{margin:0;padding:0 12px 10px;background:#fff;font-size:.68rem;color:var(--tv-muted);text-align:center}
.tvhk-empty{padding:32px;text-align:center;border:1px dashed var(--tv-line);border-radius:var(--tv-radius)}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.tvhk-countdown span[hidden]{display:none}.tvhk-countdown__day{min-width:auto!important;padding:0 7px!important}
