/* ==================================================================
   Fast AI Chatbot — LỚP GIAO DIỆN "SINH ĐỘNG"

   Tệp này nạp SAU site.css và chỉ GHI ĐÈ / BỔ SUNG.
   Tắt nó đi (Cấu hình chung → Giao diện → "gon") là website quay về
   đúng bản tối giản ban đầu, không mất gì.
   ================================================================== */

:root {
  --v2-mesh: radial-gradient(1100px 520px at 82% -12%, rgba(255, 209, 128, .40), transparent 58%),
             radial-gradient(820px 520px at 4% 8%, rgba(0, 172, 193, .20), transparent 56%),
             radial-gradient(700px 480px at 50% 108%, rgba(0, 172, 193, .12), transparent 60%);
  --v2-dot: radial-gradient(circle at 1px 1px, rgba(0, 128, 143, .17) 1px, transparent 0);
  --v2-lift: 0 20px 48px -20px rgba(22, 50, 58, .30);
}

/* ---------------- 1. Nền có hoa văn, bớt phẳng ---------------- */
.t-v2 .section--paper,
.t-v2 .section--tint {
  position: relative;
  isolation: isolate;
}
.t-v2 .section--paper::before,
.t-v2 .section--tint::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--v2-dot);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
  opacity: .7;
  pointer-events: none;
}

.t-v2 .hero {
  background: var(--v2-mesh), linear-gradient(168deg, var(--teal-50) 0%, #fbfeff 62%, #fff 100%);
}
.t-v2 .hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--v2-dot);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  opacity: .55;
  pointer-events: none;
}

/* ---------------- 2. Tiêu đề khối có sức nặng hơn ---------------- */
.t-v2 .eyebrow {
  background: #fff;
  border: 1px solid var(--teal-100);
  border-radius: var(--r-pill);
  padding: 7px 15px 7px 12px;
  box-shadow: 0 2px 8px -4px rgba(22, 50, 58, .2);
}
.t-v2 .section--deep .eyebrow,
.t-v2 .ctaband .eyebrow {
  background: rgba(255, 255, 255, .09);
  border-color: var(--line-dark);
}
.t-v2 .eyebrow::before { width: 18px; }

/* Gạch chân màu dưới từ khoá quan trọng trong tiêu đề */
.t-v2 h2 .mark {
  background: linear-gradient(180deg, transparent 62%, var(--brand-200) 62%);
  padding: 0 2px;
}
.t-v2 .section--deep h2 .mark {
  background: linear-gradient(180deg, transparent 62%, rgba(255, 143, 0, .45) 62%);
}

/* ---------------- 3. Thẻ: nổi khối, có chiều sâu ---------------- */
.t-v2 .card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s;
}
/* Vạch màu phủ luôn viền 1px của thẻ để nó liền khối, không trông như lơ lửng */
.t-v2 .card::after {
  content: '';
  position: absolute; top: -1px; left: -1px; right: -1px; height: 4px;
  margin: 0;                         /* khoa lai: dung de quy tac khac day vach lech khoi mep */
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--teal), var(--brand));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.t-v2 .card:hover { transform: translateY(-6px); box-shadow: var(--v2-lift); border-color: var(--teal-200); }
.t-v2 .card:hover::after { transform: scaleX(1); }

/* Thẻ kênh tự vẽ vạch màu riêng bằng ::before, nên tắt vạch chung ở đây
   — để cả hai là hai vạch chồng nhau ở cùng một mép. */
.t-v2 .channel::after { display: none; }
.t-v2 .channel { border-radius: 20px; }
.t-v2 .channel::before {
  height: 5px; border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--ch-ink), var(--ch));
}
.t-v2 .channel:hover { border-color: var(--ch); }

/* Thẻ năng lực: biểu tượng to, có khối màu riêng */
.t-v2 .cap-head { gap: 15px; margin-bottom: 16px; }
.t-v2 .cap .ico {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(140deg, var(--teal-700), var(--teal));
  border: 0; color: #fff;
  box-shadow: 0 10px 22px -10px rgba(0, 128, 143, .55);
  transition: transform .26s var(--ease);
}
.t-v2 .cap .ico svg { width: 25px; height: 25px; stroke-width: 1.6; }
.t-v2 .card:hover .cap .ico,
.t-v2 .cap:hover .ico { transform: rotate(-6deg) scale(1.06); }
.t-v2 .cap h3 { font-size: 1.06rem; min-height: 2.3em; }
.t-v2 .cap { padding-top: 28px; }
.t-v2 .cap p { line-height: 1.62; }

/* Xen kẽ sắc biểu tượng để lưới đỡ đơn điệu */
.t-v2 .grid > *:nth-child(4n+2) .cap .ico {
  background: linear-gradient(140deg, var(--brand-700), var(--brand));
  box-shadow: 0 10px 22px -10px rgba(255, 143, 0, .55);
}
.t-v2 .grid > *:nth-child(4n+3) .cap .ico {
  background: linear-gradient(140deg, #1c4450, var(--teal-800));
  box-shadow: 0 10px 22px -10px rgba(22, 50, 58, .45);
}

/* Số thứ tự lớn mờ phía sau thẻ đánh số */
.t-v2 .card--num { padding-top: 26px; }
.t-v2 .card--num::before {
  content: attr(data-no);
  position: absolute; right: 14px; top: 2px;
  font-size: 4.6rem; font-weight: 800; line-height: 1;
  color: var(--teal-50);
  pointer-events: none; z-index: 0;
}
.t-v2 .card--num > * { position: relative; z-index: 1; }
.t-v2 .card--num .no {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(140deg, var(--teal-700), var(--teal)); color: #fff;
  box-shadow: 0 8px 18px -8px rgba(0, 128, 143, .5);
}
.t-v2 .card--quiet::before { color: var(--brand-soft); }
.t-v2 .card-flag { color: var(--brand-700); }
/* Thẻ nền cam nhạt: viền phải đủ rõ trên nền xanh, nếu không mép thẻ biến mất */
.t-v2 .card--quiet {
  background: linear-gradient(180deg, var(--brand-soft), #fff 52%);
  border-color: var(--brand-200);
}
.t-v2 .card--quiet:hover { border-color: var(--brand); }
.t-v2 .card--quiet .no {
  background: linear-gradient(140deg, var(--brand-700), var(--brand)); color: #fff;
  box-shadow: 0 8px 18px -8px rgba(255, 143, 0, .5);
}

/* ---------------- 4. Dải số liệu bắt mắt hơn ---------------- */
.t-v2 .statstrip {
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fafeff);
  border-color: var(--teal-100);
}
.t-v2 .statstrip .item { padding: 12px; }
.t-v2 .statstrip .v { font-size: clamp(1.65rem, 2.8vw, 2.25rem); }
.t-v2 .statstrip .item::after {
  content: ''; display: block; width: 26px; height: 3px; border-radius: 2px;
  margin: 10px auto 0; background: var(--teal); opacity: .35;
}
.t-v2 .statstrip .item:nth-child(even)::after { background: var(--brand); }

/* ---------------- 5. Nút có chiều sâu ---------------- */
.t-v2 .btn-primary {
  box-shadow: 0 10px 26px -10px rgba(255, 143, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.t-v2 .btn-primary:hover { box-shadow: 0 18px 38px -12px rgba(255, 143, 0, .7); }
.t-v2 .btn-lg { font-weight: 700; }

/* Vòng sáng lan toả quanh nút chính ở khối mở đầu */
.t-v2 .hero-actions .btn-primary { position: relative; }
.t-v2 .hero-actions .btn-primary::before {
  content: ''; position: absolute; inset: -4px; border-radius: inherit;
  background: inherit; filter: blur(14px); opacity: .32; z-index: -1;
}

/* ---------------- 6. Khối so sánh rõ hơn ---------------- */
.t-v2 .versus-col:last-child {
  background: linear-gradient(180deg, #fff, var(--teal-25));
  border-color: var(--teal);
  box-shadow: var(--v2-lift);
}
.t-v2 .versus-col:last-child li .m { box-shadow: 0 4px 10px -4px rgba(14, 159, 110, .6); }
.t-v2 .versus-mid {
  background: linear-gradient(180deg, var(--teal-800), var(--ink));
}

/* ---------------- 7. Lộ trình có mũi tên nối ---------------- */
.t-v2 .steps::before {
  background: linear-gradient(90deg, var(--teal-200), var(--brand-200));
  height: 3px; border-radius: 2px; opacity: .8;
}
.t-v2 .step .n {
  border-width: 3px;
  box-shadow: 0 6px 16px -8px rgba(22, 50, 58, .35);
}
.t-v2 .step:not(.own) .n { border-color: var(--teal); color: var(--teal-800); }
.t-v2 .step.own .n { box-shadow: 0 8px 20px -8px rgba(255, 143, 0, .65); }
@media (max-width: 940px) {
  .t-v2 .steps::before { background: linear-gradient(180deg, var(--teal-200), var(--brand-200)); width: 3px; }
}

/* ---------------- 8. Việc hôm nay & phễu ---------------- */
.t-v2 .task { border-radius: 18px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.t-v2 .task:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.t-v2 .task .n { box-shadow: 0 8px 18px -8px rgba(0, 128, 143, .45); }
.t-v2 .task:first-child .n { box-shadow: 0 8px 18px -8px rgba(255, 143, 0, .6); }
.t-v2 .funnel .st { transition: transform .18s var(--ease); }
.t-v2 .funnel .st:hover { transform: translateY(-3px); }

/* ---------------- 9. Thẻ gói dịch vụ ---------------- */
.t-v2 .plan { border-radius: 22px; }
.t-v2 .plan.hot {
  background: linear-gradient(180deg, var(--brand-25), #fff 32%);
  border-width: 2px;
  box-shadow: 0 22px 50px -22px rgba(255, 143, 0, .5);
}
.t-v2 .plan.hot .price { color: var(--brand-700); }
.t-v2 .plan .price { font-size: clamp(1.8rem, 3vw, 2.25rem); }
.t-v2 .plan-badge { box-shadow: 0 8px 18px -8px rgba(255, 143, 0, .8); }

/* ---------------- 10. Câu chốt: dấu nháy lớn ---------------- */
.t-v2 .kicker {
  position: relative;
  border-left-width: 4px;
  border-radius: 0 18px 18px 0;
  padding-left: 30px;
}
.t-v2 .kicker::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-200));
}

/* ---------------- 11. Ảnh chụp màn hình thật ---------------- */
.proof { display: grid; gap: clamp(18px, 2.4vw, 26px); }

/* Khung điện thoại cho ảnh chat */
.phone {
  position: relative;
  border-radius: 30px;
  padding: 9px;
  background: linear-gradient(160deg, #263e46, var(--ink));
  box-shadow: 0 26px 54px -24px rgba(22, 50, 58, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.phone::before {
  content: ''; position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 62px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); z-index: 2;
}
.phone img { border-radius: 22px; width: 100%; display: block; }
.phone:hover { transform: translateY(-8px); box-shadow: 0 34px 66px -26px rgba(22, 50, 58, .6); }
.phone .lb {
  position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 5px 15px; font-size: .74rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--teal-800); white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(22, 50, 58, .3);
}

/* Ba khung cùng cỡ, đáy và nhãn thẳng hàng — ảnh đã chuẩn hoá về 412×700 */
.phones {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 38px); align-items: stretch;
  padding-bottom: 22px;
}
.phones .phone { display: flex; }
.phones .phone img { width: 100%; height: auto; }
@media (max-width: 820px) {
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phones .phone:nth-child(3) { grid-column: 1 / -1; max-width: 340px; margin-inline: auto; }
}
@media (max-width: 480px) {
  .phones { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
  .phones .phone:nth-child(3) { max-width: none; }
}

/* Khung cửa sổ trình duyệt cho ảnh console */
.window {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 26px 56px -26px rgba(22, 50, 58, .42);
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; background: var(--teal-25); border-bottom: 1px solid var(--line);
}
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); flex: none; }
.window-bar i:nth-child(1) { background: #ff6058; }
.window-bar i:nth-child(2) { background: #ffbd2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar .url {
  margin-left: 10px; flex: 1; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 5px 14px; font-size: .76rem; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.window-body { background: #fff; max-height: 560px; overflow: hidden; position: relative; }
.window-body img { width: 100%; display: block; }
.window-body::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 76px;
  background: linear-gradient(180deg, transparent, #fff);
  pointer-events: none;
}
.window.tall .window-body { max-height: none; }
.window.tall .window-body::after { display: none; }

/* Thanh chọn màn hình console */
.shots-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.shots-tabs button {
  padding: 9px 17px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: #fff; color: var(--text-2);
  font-size: .87rem; font-weight: 600; transition: .16s;
}
.shots-tabs button:hover { border-color: var(--teal-200); color: var(--teal-800); }
.shots-tabs button.on {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-700));
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 20px -10px rgba(0, 128, 143, .7);
}
.shots-pane { display: none; }
.shots-pane.on { display: block; animation: shotIn .3s var(--ease); }
@keyframes shotIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.shots-cap {
  margin-top: 16px; font-size: .92rem; color: var(--text-2);
  display: flex; gap: 10px; align-items: flex-start;
}
.shots-cap svg { width: 17px; height: 17px; color: var(--teal); margin-top: 3px; }

/* Nút phóng to ảnh */
.zoomable { cursor: zoom-in; position: relative; }
.zoomable::after {
  content: 'Bấm để phóng to';
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  background: rgba(22, 50, 58, .82); color: #fff;
  padding: 6px 13px; border-radius: var(--r-pill);
  font-size: .74rem; font-weight: 600;
  opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.zoomable:hover::after { opacity: 1; }

/* Lớp phủ xem ảnh lớn */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(10, 26, 31, .92);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.lightbox.on { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(1200px, 94vw); max-height: 88vh; width: auto;
  border-radius: 12px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7);
}
.lightbox .x {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.4rem; line-height: 1;
}
.lightbox .x:hover { background: rgba(255, 255, 255, .26); }
.lightbox .cap {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  color: #cfe6ea; font-size: .88rem; text-align: center; max-width: 80vw;
}

/* ---------------- 12. Dải "đã chạy thật" ---------------- */
.realbar {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-bottom: clamp(28px, 3.5vw, 40px);
}
.realbar .r {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--teal-100); border-radius: var(--r-pill);
  padding: 9px 18px; font-size: .88rem; font-weight: 600; color: var(--text-2);
  box-shadow: 0 4px 14px -8px rgba(22, 50, 58, .28);
}
.realbar .r svg { width: 16px; height: 16px; color: var(--ok-text); }
.realbar .r b { color: var(--ink); }

/* ---------------- 13. Hoạt ảnh cuộn mượt hơn ---------------- */
.t-v2 .reveal { transform: translateY(26px) scale(.985); }
.t-v2 .reveal.in { transform: none; transition: opacity .65s var(--ease), transform .65s var(--ease); }

/* ---------------- 14. Trang bài viết ---------------- */
.feat {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px); align-items: stretch;
  margin-bottom: clamp(26px, 3.5vw, 40px);
}
.feat-main {
  position: relative; display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden;
  background: var(--ink); color: #fff; min-height: 340px;
  box-shadow: var(--v2-lift);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.feat-main:hover { transform: translateY(-5px); box-shadow: 0 30px 64px -24px rgba(22, 50, 58, .45); }
.feat-main .bg { position: absolute; inset: 0; }
.feat-main .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.feat-main .sh {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,50,58,.28) 0%, rgba(22,50,58,.86) 58%, rgba(22,50,58,.96) 100%);
}
.feat-main .in { position: relative; margin-top: auto; padding: clamp(24px, 3vw, 34px); }
.feat-main h2 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); color: #fff; }
.feat-main p { color: #cfe0e4; margin-top: 12px; font-size: .97rem; }
.feat-main .meta { margin-top: 16px; font-size: .82rem; color: #9db4ba; }

.feat-side { display: grid; gap: clamp(16px, 2vw, 22px); }
.feat-side .postcard { flex-direction: row; }
.feat-side .postcard .thumb { aspect-ratio: 1; width: 40%; flex: none; }
.feat-side .postcard .body { padding: 18px 20px; }
.feat-side .postcard h3 { font-size: 1rem; }
.feat-side .postcard p { font-size: .86rem; margin-top: 7px; }

@media (max-width: 880px) {
  .feat { grid-template-columns: 1fr; }
  .feat-side .postcard { flex-direction: column; }
  .feat-side .postcard .thumb { width: 100%; aspect-ratio: 16/9; }
}

.postcard .tagpill {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255, 255, 255, .94); color: var(--teal-800);
  font-size: .69rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
  box-shadow: 0 4px 12px -6px rgba(22, 50, 58, .4);
}
.t-v2 .postcard { position: relative; border-radius: 20px; }
.t-v2 .postcard:hover { box-shadow: var(--v2-lift); }
.t-v2 .postcard .thumb { position: relative; overflow: hidden; }
.t-v2 .postcard .thumb img { transition: transform .4s var(--ease); }
.t-v2 .postcard:hover .thumb img { transform: scale(1.05); }

.blog-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 34px); }
.blog-nav a {
  padding: 9px 17px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: #fff; color: var(--text-2);
  font-size: .87rem; font-weight: 600; transition: .16s;
}
.blog-nav a:hover { border-color: var(--teal-200); color: var(--teal-800); }
.blog-nav a.on {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-700));
  border-color: transparent; color: #fff;
}

/* ---------------- 15. Bớt hiệu ứng khi người dùng yêu cầu ---------------- */
@media (prefers-reduced-motion: reduce) {
  .t-v2 .card:hover, .t-v2 .task:hover, .phone:hover,
  .t-v2 .postcard:hover .thumb img, .feat-main:hover { transform: none; }
}

/* ---------------- 16. Menu: báo rõ trang đang xem ----------------
   Chỉ áp dụng cho menu NGANG. Ở màn hình hẹp menu là danh sách dọc,
   quy tắc riêng của site.css lo phần đó — không ghi đè lên. */
@media (min-width: 1041px) {
  .t-v2 .nav-links a.active {
    background: linear-gradient(180deg, transparent 55%, var(--teal-25) 55%);
    padding-left: 20px;
  }
  .t-v2 .nav-links a::after { height: 3px; }
  /* Chấm cam nhỏ cạnh mục đang xem */
  .t-v2 .nav-links a.active::before {
    content: ''; position: absolute; left: 8px; top: 50%; margin-top: -3px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
    box-shadow: 0 0 0 3px rgba(255, 143, 0, .22);
  }
}
