/* =========================================================
   DucIT.vn – Khối "Nền tảng học tự xây" + hero app-window
   File riêng, không phụ thuộc Tailwind build. Tiền tố .ht-
   ========================================================= */
:root{
  --ht-green:#017114;
  --ht-green-2:#05962b;
  --ht-green-soft:#E7F3E8;
  --ht-orange:#F77E2D;
  --ht-orange-soft:#FFF1E6;
  --ht-burgundy:#7A1F3D;
  --ht-ink:#14211B;
  --ht-soft:#48584F;
  --ht-border:#E1E8E2;
  --ht-muted:#F5F8F5;
  /* nền tối cho khối công nghệ */
  --ht-night:#0D1913;
  --ht-night-2:#132219;
  --ht-night-card:#16271D;
  --ht-night-line:rgba(255,255,255,.09);
  --ht-night-text:#E8F1EA;
  --ht-night-muted:#A9BDB0;
  --ht-mint:#6EE79A;
  --ht-red:#E5484D;
  --ht-ease:cubic-bezier(.22,1,.36,1);
}

/* ---------- HERO: cửa sổ ứng dụng ---------- */
.ht-window{
  position:relative;border-radius:20px;background:#fff;
  border:1px solid var(--ht-border);
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset,0 24px 60px -24px rgba(1,113,20,.35),0 8px 24px -12px rgba(20,33,27,.18);
  overflow:hidden;
}
.ht-window::before{ /* viền sáng chạy quanh */
  content:"";position:absolute;inset:-1px;border-radius:21px;padding:1px;pointer-events:none;
  background:conic-gradient(from var(--ht-angle,0deg),transparent 0 70%,rgba(5,150,43,.9) 80%,rgba(247,126,45,.9) 88%,transparent 95%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;
  animation:ht-spin 7s linear infinite;
}
@property --ht-angle{syntax:"<angle>";initial-value:0deg;inherits:false}
@keyframes ht-spin{to{--ht-angle:360deg}}

.ht-bar{display:flex;align-items:center;gap:10px;padding:11px 14px;border-bottom:1px solid var(--ht-border);background:var(--ht-muted)}
.ht-dots{display:flex;gap:6px}
.ht-dots i{width:10px;height:10px;border-radius:50%;background:#D5DDD7;display:block}
.ht-dots i:nth-child(1){background:#F26B5B}.ht-dots i:nth-child(2){background:#F5BE4F}.ht-dots i:nth-child(3){background:#3FC25B}
.ht-url{flex:1;min-width:0;display:flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--ht-border);border-radius:999px;padding:5px 12px;font-size:13px;color:var(--ht-soft);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ht-url svg{flex-shrink:0}
.ht-url b{color:var(--ht-ink);font-weight:600}
.ht-live{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--ht-green);font-family:Lexend,sans-serif}
.ht-live::before{content:"";width:8px;height:8px;border-radius:50%;background:#3FC25B;box-shadow:0 0 0 0 rgba(63,194,91,.6);animation:ht-pulse 1.8s infinite}
@keyframes ht-pulse{70%{box-shadow:0 0 0 8px rgba(63,194,91,0)}100%{box-shadow:0 0 0 0 rgba(63,194,91,0)}}

.ht-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:8px;border-bottom:1px solid var(--ht-border)}
.ht-tab{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border-radius:12px;border:0;background:transparent;cursor:pointer;font-family:Lexend,sans-serif;font-size:12.5px;font-weight:600;color:var(--ht-soft);line-height:1.2;transition:background-color .2s,color .2s;min-height:48px;overflow:hidden}
.ht-tab .ht-tab-ico{font-size:17px;line-height:1;font-weight:700;color:var(--ht-ink)}
.ht-tab:hover{background:var(--ht-muted);color:var(--ht-ink)}
.ht-tab[aria-selected="true"]{background:var(--ht-green-soft);color:var(--ht-green)}
.ht-tab[aria-selected="true"] .ht-tab-ico{color:var(--ht-green)}
.ht-tab:focus-visible,.ht-btn:focus-visible,.ht-chip:focus-visible,.ht-cta:focus-visible,.ht-mic:focus-visible{outline:3px solid var(--ht-orange);outline-offset:2px}
.ht-tab-progress{position:absolute;left:10px;right:10px;bottom:3px;height:2px;border-radius:2px;background:var(--ht-green);transform:scaleX(0);transform-origin:left}
.ht-tab[aria-selected="true"] .ht-tab-progress.is-run{animation:ht-progress var(--ht-dur,6500ms) linear forwards}
@keyframes ht-progress{to{transform:scaleX(1)}}

.ht-stage{position:relative;height:400px}
.ht-panel{position:absolute;inset:0;padding:18px;display:flex;flex-direction:column;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .35s var(--ht-ease),transform .35s var(--ht-ease),visibility 0s .35s}
.ht-panel.is-active{opacity:1;visibility:visible;transform:none;transition:opacity .35s var(--ht-ease),transform .35s var(--ht-ease)}
.ht-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.ht-panel-title{font-family:Lexend,sans-serif;font-weight:700;color:var(--ht-ink);font-size:16px}
.ht-pill{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;border-radius:999px;padding:3px 10px;background:var(--ht-green-soft);color:var(--ht-green);white-space:nowrap}
.ht-pill--orange{background:var(--ht-orange-soft);color:#A9480B}
.ht-pill--red{background:#FBEAEE;color:var(--ht-burgundy)}

/* Panel Chữ Hán */
.ht-hanzi-wrap{flex:1;display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center}
.ht-grid{position:relative;width:min(200px,42vw);aspect-ratio:1;border:2px solid #E8B9C7;border-radius:14px;background:#FFFBFC}
.ht-grid::before,.ht-grid::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to right,transparent calc(50% - .5px),#F1D3DC calc(50% - .5px),#F1D3DC calc(50% + .5px),transparent calc(50% + .5px)),
             linear-gradient(to bottom,transparent calc(50% - .5px),#F1D3DC calc(50% - .5px),#F1D3DC calc(50% + .5px),transparent calc(50% + .5px))}
.ht-grid::after{background:linear-gradient(45deg,transparent calc(50% - .5px),#F6E2E8 calc(50% - .5px),#F6E2E8 calc(50% + .5px),transparent calc(50% + .5px)),linear-gradient(-45deg,transparent calc(50% - .5px),#F6E2E8 calc(50% - .5px),#F6E2E8 calc(50% + .5px),transparent calc(50% + .5px))}
.ht-grid > div,.ht-grid > svg{position:relative;z-index:1;width:100%;height:100%}
.ht-grid-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:110px;line-height:1;color:var(--ht-ink);font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;z-index:0}
.ht-grid.is-ready .ht-grid-fallback{display:none}
.ht-hanzi-info{min-width:0}
.ht-hv{font-family:Lexend,sans-serif;font-weight:800;font-size:28px;letter-spacing:.04em;color:var(--ht-burgundy);line-height:1.1}
.ht-py{font-size:15px;color:var(--ht-soft);margin-top:4px}
.ht-mean{font-size:15px;color:var(--ht-ink);margin-top:10px;line-height:1.45}
.ht-strokes{display:flex;gap:4px;margin-top:12px;flex-wrap:wrap}
.ht-strokes i{width:18px;height:6px;border-radius:3px;background:#F1D3DC;transition:background-color .3s}
.ht-strokes i.on{background:var(--ht-burgundy)}
.ht-foot{margin-top:auto;display:flex;flex-wrap:wrap;gap:6px;padding-top:12px}

/* Panel Speak */
.ht-wave{display:flex;align-items:center;gap:3px;height:56px;padding:0 4px;margin-bottom:12px}
.ht-wave i{flex:1;max-width:6px;border-radius:3px;background:linear-gradient(var(--ht-green-2),var(--ht-green));height:20%;animation:ht-wave 1.1s ease-in-out infinite;animation-delay:calc(var(--i) * -70ms)}
@keyframes ht-wave{0%,100%{height:18%}50%{height:var(--h,80%)}}
.ht-sentence{font-family:Lexend,sans-serif;font-size:clamp(18px,2.1vw,22px);font-weight:600;line-height:1.5;color:#B5C2BA;display:flex;flex-wrap:wrap;gap:4px 8px}
.ht-sentence span{transition:color .25s,background-color .25s;border-radius:6px;padding:0 3px}
.ht-sentence .ok{color:var(--ht-green);background:var(--ht-green-soft)}
.ht-sentence .bad{color:#B4232A;background:#FDECEC;text-decoration:underline wavy rgba(180,35,42,.55);text-underline-offset:5px}
.ht-tip{margin-top:12px;font-size:14px;line-height:1.45;color:var(--ht-ink);background:var(--ht-orange-soft);border-radius:12px;padding:9px 12px;opacity:0;transform:translateY(6px);transition:opacity .3s,transform .3s}
.ht-tip.show{opacity:1;transform:none}
.ht-score{display:flex;align-items:center;gap:12px;margin-top:auto}
.ht-ring{--p:0;width:58px;height:58px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;font-family:Lexend,sans-serif;font-weight:800;font-size:15px;color:var(--ht-green);
  background:radial-gradient(closest-side,#fff 78%,transparent 80% 100%),conic-gradient(var(--ht-green) calc(var(--p) * 1%),#E4EBE6 0)}
.ht-ladder{display:flex;gap:6px;flex-wrap:wrap}
.ht-ladder span{font-size:12.5px;font-weight:600;border:1px dashed #C9D6CD;border-radius:999px;padding:3px 10px;color:var(--ht-soft)}
.ht-ladder span.on{border-style:solid;border-color:var(--ht-green);color:var(--ht-green);background:var(--ht-green-soft)}

/* Panel HSK */
.ht-bars{flex:1;display:grid;grid-template-columns:repeat(6,1fr);gap:8px;align-items:end;padding-top:8px}
.ht-bar-col{display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;justify-content:flex-end}
.ht-bar-col b{font-size:12px;color:var(--ht-ink);font-weight:700;font-variant-numeric:tabular-nums;opacity:0;transition:opacity .3s .5s}
.ht-bar-fill{width:100%;border-radius:8px 8px 4px 4px;background:linear-gradient(180deg,#B83A60,var(--ht-burgundy));height:var(--h);transform:scaleY(0);transform-origin:bottom;transition:transform .8s var(--ht-ease)}
.ht-bar-col:nth-child(-n+3) .ht-bar-fill{background:linear-gradient(180deg,#E5899F,#C2506F)}
.ht-bar-col small{font-size:12px;font-weight:700;color:var(--ht-soft);font-family:Lexend,sans-serif}
.is-active .ht-bar-fill,.ht-bars.is-on .ht-bar-fill{transform:scaleY(1)}
.is-active .ht-bar-col b,.ht-bars.is-on .ht-bar-col b{opacity:1}
.ht-bar-col:nth-child(2) .ht-bar-fill{transition-delay:.08s}.ht-bar-col:nth-child(3) .ht-bar-fill{transition-delay:.16s}.ht-bar-col:nth-child(4) .ht-bar-fill{transition-delay:.24s}.ht-bar-col:nth-child(5) .ht-bar-fill{transition-delay:.32s}.ht-bar-col:nth-child(6) .ht-bar-fill{transition-delay:.4s}
.ht-hsk-sub{font-size:14px;color:var(--ht-soft);line-height:1.45}
.ht-hsk-sub b{color:var(--ht-ink)}

/* Panel Tin học */
.ht-blocks{display:flex;flex-direction:column;gap:3px;align-items:flex-start}
.ht-block{font-size:14px;font-weight:600;color:#fff;border-radius:8px;padding:7px 12px;box-shadow:0 2px 0 rgba(0,0,0,.15);opacity:0;transform:translateX(-10px);transition:opacity .3s,transform .3s var(--ht-ease)}
.is-active .ht-block{opacity:1;transform:none}
.ht-block--event{background:#E6A817;border-radius:16px 16px 8px 8px}
.ht-block--loop{background:#E8892B;margin-left:0}
.ht-block--move{background:#4C8DF6;margin-left:18px}
.ht-block--look{background:#9466F0;margin-left:18px}
.is-active .ht-block:nth-child(2){transition-delay:.15s}.is-active .ht-block:nth-child(3){transition-delay:.3s}.is-active .ht-block:nth-child(4){transition-delay:.45s}
.ht-ai{display:flex;gap:10px;align-items:flex-start;margin-top:14px;opacity:0;transform:translateY(8px);transition:opacity .35s .8s,transform .35s .8s}
.is-active .ht-ai{opacity:1;transform:none}
.ht-ai-ava{width:34px;height:34px;border-radius:50%;background:var(--ht-green);color:#fff;display:grid;place-items:center;font-family:Lexend,sans-serif;font-weight:700;font-size:12px;flex-shrink:0}
.ht-ai-bubble{background:var(--ht-muted);border:1px solid var(--ht-border);border-radius:4px 14px 14px 14px;padding:9px 12px;font-size:14px;line-height:1.45;color:var(--ht-ink)}
.ht-ai-bubble b{color:var(--ht-green)}

/* Thẻ nổi quanh cửa sổ */
.ht-float{position:absolute;z-index:3;background:#fff;border:1px solid var(--ht-border);border-radius:14px;box-shadow:0 12px 30px -12px rgba(20,33,27,.25);padding:10px 14px;display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:var(--ht-ink);line-height:1.3;animation:ht-float 6s ease-in-out infinite}
.ht-float--tr{top:-58px;right:-12px;animation-delay:-2s}
.ht-float--bl{bottom:-58px;left:-18px;max-width:260px}
.ht-window .ht-panel{padding-bottom:30px}
.ht-hero-col{margin:64px 0 56px}
.ht-float-ico{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;flex-shrink:0;background:var(--ht-green-soft)}
@keyframes ht-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}

/* ---------- KHỐI NỀN TẢNG (nền tối) ---------- */
.ht-section{position:relative;overflow:hidden;background:var(--ht-night);color:var(--ht-night-text);padding:72px 0 80px;isolation:isolate}
@media (min-width:640px){.ht-section{padding:96px 0 104px}}
.ht-section::before{ /* lưới kỹ thuật */
  content:"";position:absolute;inset:0;z-index:-2;
  background-image:linear-gradient(var(--ht-night-line) 1px,transparent 1px),linear-gradient(90deg,var(--ht-night-line) 1px,transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 0%,#000 30%,transparent 75%);mask-image:radial-gradient(ellipse 80% 60% at 50% 0%,#000 30%,transparent 75%);
}
.ht-section::after{ /* quầng sáng */
  content:"";position:absolute;z-index:-1;width:900px;height:520px;left:50%;top:-260px;transform:translateX(-50%);
  background:radial-gradient(closest-side,rgba(5,150,43,.38),transparent),radial-gradient(closest-side at 80% 60%,rgba(247,126,45,.18),transparent);
  filter:blur(10px);pointer-events:none;
}
.ht-head{text-align:center;max-width:760px;margin:0 auto 48px}
.ht-eyebrow{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(110,231,154,.35);background:rgba(110,231,154,.08);color:var(--ht-mint);border-radius:999px;padding:6px 14px;font-family:Lexend,sans-serif;font-size:14px;font-weight:600;letter-spacing:.03em;text-transform:uppercase}
.ht-eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ht-mint);box-shadow:0 0 10px var(--ht-mint)}
.ht-title{font-family:Lexend,sans-serif;font-weight:700;font-size:clamp(28px,4.2vw,44px);line-height:1.18;margin:18px 0 14px;color:#fff;text-wrap:balance}
.ht-title em{font-style:normal;background:linear-gradient(90deg,var(--ht-mint),#B7F5CB 45%,#FFC08F);-webkit-background-clip:text;background-clip:text;color:transparent}
.ht-lead{font-size:17px;line-height:1.7;color:var(--ht-night-muted);max-width:640px;margin:0 auto}

.ht-cards{display:grid;gap:20px}
@media (min-width:768px){.ht-cards{grid-template-columns:1fr 1fr}.ht-card--wide{grid-column:1 / -1}}
@media (min-width:1100px){.ht-cards{grid-template-columns:repeat(3,1fr)}.ht-card--wide{grid-column:auto}}

.ht-card{position:relative;display:flex;flex-direction:column;background:linear-gradient(180deg,var(--ht-night-card),var(--ht-night-2));border:1px solid var(--ht-night-line);border-radius:22px;padding:22px;transition:border-color .25s,transform .25s var(--ht-ease),box-shadow .25s}
.ht-card:hover{border-color:rgba(110,231,154,.35);box-shadow:0 20px 50px -24px rgba(5,150,43,.55)}
.ht-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.ht-app{display:flex;align-items:center;gap:12px;min-width:0}
.ht-app-ico{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;flex-shrink:0;font-family:Lexend,sans-serif;font-weight:800;font-size:20px;color:#fff}
.ht-app-ico--hanzi{background:linear-gradient(135deg,#C2506F,var(--ht-burgundy))}
.ht-app-ico--speak{background:linear-gradient(135deg,var(--ht-green-2),var(--ht-green))}
.ht-app-ico--hsk{background:linear-gradient(135deg,#FF9C55,#E0631A)}
.ht-app h3{font-family:Lexend,sans-serif;font-weight:700;font-size:20px;color:#fff;line-height:1.2}
.ht-app p{font-size:13.5px;color:var(--ht-night-muted);margin-top:2px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.ht-tag{font-size:12px;font-weight:600;border-radius:999px;padding:4px 10px;background:rgba(255,255,255,.07);border:1px solid var(--ht-night-line);color:var(--ht-night-text);white-space:nowrap}
.ht-desc{font-size:15.5px;line-height:1.6;color:var(--ht-night-muted);margin-bottom:16px}
.ht-desc b{color:var(--ht-night-text);font-weight:600}

/* Màn hình demo trong thẻ */
.ht-demo{background:#fff;color:var(--ht-ink);border-radius:16px;padding:16px;margin-bottom:18px;box-shadow:0 0 0 1px rgba(255,255,255,.06),0 18px 40px -20px rgba(0,0,0,.6)}
.ht-demo-label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ht-soft);margin-bottom:10px}
.ht-demo-label span:last-child{text-transform:none;letter-spacing:0;font-weight:600}

.ht-trace{display:grid;grid-template-columns:1fr;gap:12px;justify-items:center;text-align:center}
.ht-trace .ht-grid{width:min(190px,60vw)}
.ht-trace .ht-chips,.ht-trace .ht-btns{justify-content:center}
.ht-chips{display:flex;flex-wrap:wrap;gap:6px}
.ht-chip{min-width:44px;min-height:44px;border-radius:12px;border:1.5px solid var(--ht-border);background:#fff;cursor:pointer;font-size:20px;line-height:1;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px 6px;color:var(--ht-ink);transition:border-color .2s,background-color .2s}
.ht-chip small{font-size:10px;font-weight:700;color:var(--ht-soft);font-family:Lexend,sans-serif}
.ht-chip:hover{border-color:#E8B9C7}
.ht-chip[aria-pressed="true"]{border-color:var(--ht-burgundy);background:#FBEAEE}
.ht-chip--hsk{font-size:13px;font-weight:700;font-family:Lexend,sans-serif;min-width:52px}
.ht-chip--hsk[aria-pressed="true"]{border-color:#E0631A;background:var(--ht-orange-soft);color:#A9480B}
.ht-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.ht-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;border-radius:999px;padding:8px 14px;font-family:Lexend,sans-serif;font-size:13.5px;font-weight:600;cursor:pointer;border:1.5px solid var(--ht-border);background:#fff;color:var(--ht-ink);transition:background-color .2s,border-color .2s,transform .15s}
.ht-btn:hover{border-color:var(--ht-green);color:var(--ht-green)}
.ht-btn:active{transform:scale(.97)}
.ht-btn--solid{background:var(--ht-green);border-color:var(--ht-green);color:#fff}
.ht-btn--solid:hover{background:#01550f;color:#fff}
.ht-status{font-size:13.5px;line-height:1.45;color:var(--ht-soft);margin-top:10px;min-height:2.9em}
.ht-status.good{color:var(--ht-green);font-weight:600}
.ht-status.warn{color:#A9480B}

.ht-mic-row{display:flex;align-items:center;gap:14px}
.ht-mic{position:relative;width:60px;height:60px;border-radius:50%;border:0;flex-shrink:0;cursor:pointer;background:var(--ht-green);color:#fff;display:grid;place-items:center;box-shadow:0 8px 20px -8px rgba(1,113,20,.7);transition:transform .15s,background-color .2s}
.ht-mic:hover{background:#01550f}
.ht-mic:active{transform:scale(.95)}
.ht-mic.is-listening{background:var(--ht-red)}
.ht-mic.is-listening::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid var(--ht-red);animation:ht-ring 1.2s ease-out infinite}
@keyframes ht-ring{from{opacity:.9;transform:scale(.9)}to{opacity:0;transform:scale(1.35)}}
.ht-mic-row .ht-sentence{font-size:19px;color:#93A39A}
.ht-heard{font-size:13px;color:var(--ht-soft);margin-top:8px;font-style:italic;min-height:1.4em}

.ht-hsk-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.ht-stat{background:var(--ht-muted);border-radius:12px;padding:10px 8px;text-align:center}
.ht-stat b{display:block;font-family:Lexend,sans-serif;font-size:22px;font-weight:800;color:var(--ht-ink);font-variant-numeric:tabular-nums;line-height:1.1}
.ht-stat span{font-size:12px;color:var(--ht-soft)}
.ht-demo .ht-bars{height:110px;flex:none;margin-top:12px;gap:6px}
.ht-demo .ht-bar-col b{font-size:11px}
.ht-demo .ht-bar-col.is-sel .ht-bar-fill{background:linear-gradient(180deg,#FF9C55,#E0631A)}
.ht-demo .ht-bar-col.is-sel small{color:#A9480B}

.ht-list{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:9px}
.ht-list li{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:1.5;color:var(--ht-night-text)}
.ht-list svg{flex-shrink:0;margin-top:3px}
.ht-cta{margin-top:auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:999px;padding:12px 20px;font-family:Lexend,sans-serif;font-weight:600;font-size:16px;background:#fff;color:var(--ht-ink);transition:background-color .2s,transform .2s var(--ht-ease)}
.ht-cta:hover{background:var(--ht-mint)}
.ht-cta svg{transition:transform .2s}
.ht-cta:hover svg{transform:translateX(3px)}

.ht-stack{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 12px;margin-top:40px}
.ht-stack li{list-style:none;display:inline-flex;align-items:center;gap:8px;font-size:14.5px;color:var(--ht-night-text);border:1px solid var(--ht-night-line);background:rgba(255,255,255,.04);border-radius:999px;padding:8px 14px}
.ht-stack svg{color:var(--ht-mint)}
.ht-note{text-align:center;font-size:13px;color:#8EA396;margin-top:18px;line-height:1.5}

/* liên kết nhỏ trong thẻ dịch vụ */
.ht-links{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.ht-links a{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;font-family:Lexend,sans-serif;border-radius:999px;padding:6px 12px;border:1px solid var(--ht-border);color:var(--ht-ink);background:var(--ht-muted);transition:border-color .2s,color .2s}
.ht-links a:hover{border-color:currentColor;color:var(--ht-green)}
.ht-links a.is-cn:hover{color:var(--ht-burgundy)}

/* ---------- Responsive ---------- */
@media (max-width:640px){
  .ht-stage{height:420px}
  .ht-chip small{font-size:11px}
  .ht-panel{padding:14px}
  .ht-hanzi-wrap{grid-template-columns:1fr;justify-items:center;text-align:center;gap:10px}
  .ht-grid{width:150px}
  .ht-strokes{justify-content:center}
  .ht-hv{font-size:24px}
  .ht-mean{display:none}
  .ht-float--tr{right:0;top:-52px;font-size:13px}
  .ht-float--bl{left:0;bottom:-54px;font-size:13px}
  .ht-trace{grid-template-columns:1fr;justify-items:center}
  .ht-trace .ht-chips{justify-content:center}
  .ht-trace .ht-btns{justify-content:center}
  .ht-card{padding:18px}
}
@media (max-width:380px){.ht-tab{font-size:11px}.ht-url{font-size:12px}}

/* ---------- Giảm chuyển động ---------- */
@media (prefers-reduced-motion:reduce){
  .ht-window::before,.ht-float,.ht-live::before,.ht-wave i,.ht-mic.is-listening::after{animation:none}
  .ht-tab-progress{display:none}
  .ht-panel,.ht-block,.ht-ai,.ht-bar-fill,.ht-tip{transition:none}
}
