/* Trang chi tiết từng AI Agent (27/10/2026, mở đầu bằng MAGi Bán hàng): khối theo khung trang agent của Mona, màu MAG 2.0. */

/* Hero: tự loại khách, cam kết, câu khó */
.tu-loai { margin-top: 20px; padding: 12px 16px; border-left: 3px solid var(--vang-logo); background: rgba(255,255,255,.05); border-radius: 0 10px 10px 0; font-size: 15px; color: rgba(255,255,255,.82); max-width: 62ch; }
.cam-ket { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; color: rgba(255,255,255,.82); }
.cam-ket li { display: flex; align-items: center; gap: 8px; }
.cam-ket li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--vang-logo); }
/* Dải số ngay dưới hero */
.dai-so { border-bottom: 1px solid var(--vien); }
.dai-so .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dai-so .wrap > div { padding: 28px 20px; border-left: 1px solid var(--vien); }
.dai-so .wrap > div:first-child { border-left: 0; padding-left: 0; }
.dai-so b { display: block; font-family: var(--font-tieu-de); font-size: 34px; font-weight: 500; line-height: 1.1; }
.dai-so span { display: block; margin-top: 6px; font-size: 13px; color: var(--chu-phu); }
@media (max-width: 1020px) {
  .dai-so .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dai-so .wrap > div { padding: 20px 16px; border-left: 0; border-top: 1px solid var(--vien); }
  .dai-so .wrap > div:nth-child(-n+2) { border-top: 0; }
  .dai-so .wrap > div:nth-child(odd) { padding-left: 0; }
}

/* Câu nên thử */
.hoi-thu ol { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.hoi-thu p { color: var(--chu-phu); }

/* Lỗi cũ / cách chặn */
.loi-ds { display: grid; gap: 14px; }
.loi-cap { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 22px 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.03); }
.loi-so { font-family: var(--font-tieu-de); font-size: 22px; color: var(--vang-logo); }
.loi-cu span, .loi-chan span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.loi-cu span { color: #ff9b8f; }
.loi-chan span { color: var(--vang-logo); }
.loi-cu h3 { font-size: 19px; color: #fff; margin-bottom: 6px; }
.loi-cu p { color: rgba(255,255,255,.66); font-size: 15px; }
.loi-chan { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.14); }
.loi-chan p { color: #fff; font-size: 15px; }
.hai-cach-tieu-de { margin: 48px 0 16px; font-size: 22px; color: #fff; }
@media (max-width: 860px) {
  .loi-cap { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; }
  .loi-chan { padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
}

/* Đường đi một tin nhắn */
.duong-di { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: dd; }
.duong-di li { position: relative; padding: 20px 18px; border: 1px solid var(--vien); border-radius: 14px; display: grid; align-content: start; gap: 8px; }
.duong-di li:not(:last-child)::after { content: '→'; position: absolute; right: -12px; top: 22px; width: 18px; text-align: center; background: var(--nen); color: var(--mag-xanh); font-weight: 600; }
.duong-di span { font-family: var(--font-tieu-de); font-size: 15px; color: var(--mag-xanh); }
.duong-di h3 { font-size: 18px; }
.duong-di p { font-size: 14px; color: var(--chu-phu); }
.nhanh-sale { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px; padding: 20px 22px; border: 1px dashed var(--vien-dam); border-radius: 14px; background: var(--nen-menu); }
.nhanh-sale p { margin-top: 4px; color: var(--chu-phu); font-size: 15px; }
@media (max-width: 1020px) {
  .duong-di { grid-template-columns: minmax(0, 1fr); }
  .duong-di li:not(:last-child)::after { content: '↓'; right: auto; left: 22px; top: auto; bottom: -15px; }
}

/* Số nội bộ trong khối tự dùng */
.so-noi-bo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.so-noi-bo > div { padding: 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; }
.so-noi-bo b { display: block; font-family: var(--font-tieu-de); font-size: 36px; font-weight: 500; color: var(--vang-logo); line-height: 1.1; }
.so-noi-bo span { display: block; margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.72); }
@media (max-width: 860px) { .so-noi-bo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Ai dạy MAGi: ba mốc */
.moc-ba { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.moc-ba li { padding: 24px; border: 1px solid var(--vien); border-radius: 14px; border-top: 3px solid var(--mag-xanh); display: grid; align-content: start; gap: 10px; }
.moc-ba li:last-child { border-top-color: var(--vang-logo); }
.moc-so { font-family: var(--font-tieu-de); font-size: 15px; color: var(--chu-nhat); }
.moc-ba h3 { font-size: 21px; }
.moc-ba p { color: var(--chu-phu); font-size: 15px; }
.moc-ba .moc-viec { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--vien); color: var(--chu); font-weight: 600; font-size: 14px; }
@media (max-width: 860px) { .moc-ba { grid-template-columns: minmax(0, 1fr); } }

/* Bốn thứ cầm về */
.cam-ve { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cam-ve li { display: flex; gap: 16px; padding: 20px 22px; border: 1px solid var(--vien); border-radius: 14px; }
.cam-ve li > span { flex: none; font-family: var(--font-tieu-de); font-size: 26px; font-weight: 500; color: var(--mag-xanh); line-height: 1.1; }
.cam-ve h3 { font-size: 18px; }
.cam-ve p { margin-top: 4px; color: var(--chu-phu); font-size: 15px; }
@media (max-width: 760px) { .cam-ve { grid-template-columns: minmax(0, 1fr); } }

/* Thư chốt */
.thu-chot .h2 { max-width: 26ch; }
.thu-than { max-width: 68ch; margin-top: 24px; display: grid; gap: 16px; font-size: 18px; line-height: 1.65; }
.thu-chot .toi-nut .nut:not(.nut-chinh) { background: transparent; }

/* ---------- Khung chat thử ở hero (27/10/2026, kiểu Mona, màu MAG 2.0) ---------- */
.chat-thu { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: center; padding-top: 34px; }
.ct-tem { position: absolute; top: -6px; left: 6px; z-index: 3; padding: 8px 14px 6px; background: var(--vang-logo); color: var(--mag-navy); font-family: var(--font-tieu-de); font-weight: 700; font-size: 20px; line-height: 1; text-transform: uppercase; border-radius: 8px; transform: rotate(-6deg); box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.ct-tem b { display: block; margin-top: 4px; padding: 4px 8px; background: var(--mag-navy); color: var(--vang-logo); font-size: 14px; border-radius: 5px; }
.ct-ong { position: absolute; top: -18px; right: -6px; z-index: 3; width: 104px; height: 104px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,199,7,.6), 0 12px 30px rgba(0,0,0,.45); }
.ct-kenh { display: grid; gap: 12px; }
.ct-kenh button { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.ct-kenh button[aria-pressed="true"] { background: #fff; color: var(--mag-navy); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.ct-logo { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--mag-xanh); }
.ct-logo img { width: 26px; height: 26px; object-fit: contain; }
.ct-khung { display: flex; flex-direction: column; min-height: 560px; border-radius: 24px; background: linear-gradient(180deg, #16207a 0, #0d1440 100%); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 80px rgba(23,54,245,.25); overflow: hidden; }
.ct-dau { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.ct-dau img { width: 44px; height: 44px; border-radius: 50%; }
.ct-dau b { display: block; color: #fff; font-size: 16px; }
.ct-dau span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #8ee6b4; }
.ct-dau span i { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 3px rgba(46,204,113,.25); }
.ct-dau em { font-style: normal; font-weight: 700; color: #fff; }
.ct-tin { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px; max-height: 340px; overflow-y: auto; }
.ct-bb { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.ct-bb.bot { align-self: flex-start; background: var(--mag-xanh); color: #fff; border-bottom-left-radius: 4px; }
.ct-bb.khach { align-self: flex-end; background: #fff; color: var(--chu); border-bottom-right-radius: 4px; }
.ct-bb.loi { align-self: flex-start; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); font-size: 14px; }
.ct-bb small { display: block; margin-top: 6px; font-size: 12px; opacity: .75; }
.ct-go { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: rgba(255,255,255,.1); border-radius: 16px; }
.ct-go i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .5; animation: ct-nhay 1s infinite; }
.ct-go i:nth-child(2) { animation-delay: .15s; } .ct-go i:nth-child(3) { animation-delay: .3s; }
@keyframes ct-nhay { 50% { opacity: 1; transform: translateY(-2px); } }
.ct-goi-y { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 14px; }
.ct-goi-y button { padding: 7px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.ct-goi-y button:hover, .ct-goi-y button:focus-visible { border-color: var(--vang-logo); background: rgba(255,199,7,.12); }
.ct-nhap { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.12); }
.ct-nhap input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 15px; }
.ct-nhap input::placeholder { color: rgba(255,255,255,.55); }
.ct-nhap button { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--vang-logo); color: var(--mag-navy); cursor: pointer; }
.ct-chu { padding: 0 18px 14px; font-size: 11.5px; color: rgba(255,255,255,.5); }
@media (max-width: 1020px) {
  .chat-thu { grid-template-columns: minmax(0, 1fr); }
  .ct-kenh { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ct-kenh button { font-size: 13px; }
  .ct-khung { min-height: 480px; }
  .ct-ong { width: 76px; height: 76px; top: -8px; }
}
@media (prefers-reduced-motion: reduce) { .ct-go i { animation: none; } }

/* Dải số: nền tối nối liền hero */
.dai-so { background: var(--mag-navy); color: #fff; border-bottom: 0; border-top: 1px solid rgba(255,255,255,.1); }
.dai-so .wrap > div { border-left-color: rgba(255,255,255,.12); }
.dai-so b { color: var(--vang-logo); }
.dai-so span { color: rgba(255,255,255,.7); }
@media (max-width: 1020px) { .dai-so .wrap > div { border-top-color: rgba(255,255,255,.12); } }

/* Khối nền xanh nhạt + khung có màu */
.nen-xanh { background: var(--mag-xanh-nhat); }
.nen-xanh .canh .the { background: #fff; border-color: #dbe2ff; border-top: 4px solid var(--mag-xanh); box-shadow: 0 10px 30px rgba(23,54,245,.08); }
.nen-xanh .canh .the:nth-child(2) { border-top-color: var(--vang-logo); }
.nen-xanh .canh .the:nth-child(3) { border-top-color: var(--mag-navy); }
.nen-xanh .canh .gio { display: inline-flex; align-self: start; padding: 4px 10px; border-radius: 999px; background: var(--mag-navy); color: var(--vang-logo); font-weight: 600; }
.nen-xanh .canh .trich { background: var(--mag-xanh-nhat); }
.nen-xanh .canh .gia { color: var(--danger); }

/* Hộp thư 23:07 chạy hai bước */
.hop-thu { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; margin-top: 48px; }
.ht-chu h3 { margin-top: 10px; font-size: 26px; line-height: 1.25; }
.ht-chu p { margin-top: 10px; color: var(--chu-phu); }
.ht-nut { display: inline-flex; gap: 4px; margin-top: 20px; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid #dbe2ff; }
.ht-nut button { padding: 9px 18px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 600; color: var(--chu-phu); cursor: pointer; }
.ht-nut button[aria-pressed="true"] { background: var(--mag-navy); color: #fff; }
.ht-khung { position: relative; min-height: 380px; padding: 22px 24px 40px; border-radius: 24px; background: #fff; border: 1px solid #dbe2ff; box-shadow: 0 24px 60px rgba(23,54,245,.14); }
.ht-tem { position: absolute; top: -26px; right: -14px; padding: 8px 14px 6px; background: var(--mag-navy); color: var(--vang-logo); font-family: var(--font-tieu-de); font-weight: 700; font-size: 20px; line-height: 1; text-transform: uppercase; border-radius: 8px; transform: rotate(4deg); border: 2px dashed rgba(255,199,7,.5); box-shadow: 6px 8px 0 var(--vang-logo); }
.ht-tem b { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .14em; color: #fff; }
.ht-dau { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--vien); }
.ht-dau img { width: 32px; height: 32px; }
.ht-dau span { margin-left: auto; font-family: var(--font-tieu-de); font-weight: 600; font-size: 18px; }
.ht-than { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; }
.ht-than .ct-bb.khach { align-self: flex-start; background: var(--mag-xanh-nhat); border-radius: 16px; border-bottom-left-radius: 4px; }
.ht-than .ct-bb.bot { align-self: flex-end; border-radius: 16px; border-bottom-right-radius: 4px; }
.ht-buoc { display: flex; flex-direction: column; gap: 12px; animation: ht-hien .4s ease; }
.ht-cho { display: inline-flex; align-items: center; gap: 4px; color: var(--chu-nhat); font-weight: 600; }
.ht-cho i { width: 5px; height: 5px; border-radius: 50%; background: var(--chu-nhat); }
.ht-lead { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--st-green-bg); }
.ht-lead > span { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--st-green); color: #fff; }
.ht-lead b { display: block; color: var(--st-green); }
.ht-lead small { color: var(--chu-phu); }
.ht-mh { position: absolute; right: 22px; bottom: 14px; font-size: 13px; color: var(--chu-nhat); }
@keyframes ht-hien { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 860px) {
  .hop-thu { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ht-tem { right: 0; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ht-buoc { animation: none; } }

/* Các khối chuyển sang nền tối theo nhịp 2 sáng 1 tối */
.toi .moc-ba li { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.03); border-top-color: var(--mag-xanh); }
.toi .moc-ba li:last-child { border-top-color: var(--vang-logo); }
.toi .moc-ba h3, .toi .moc-ba .moc-viec { color: #fff; }
.toi .moc-ba p { color: rgba(255,255,255,.72); }
.toi .moc-ba .moc-viec { border-top-color: rgba(255,255,255,.14); }
.toi .moc-so { color: var(--vang-logo); }
.toi .cam-ve li { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.03); }
.toi .cam-ve li > span { color: var(--vang-logo); }
.toi .cam-ve h3 { color: #fff; }
.toi .cam-ve p, .toi .o-vien p, .toi .o-vien .tich span { color: rgba(255,255,255,.72); }
.toi .o-vien { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.03); }
.toi .o-vien h3 { color: rgba(255,255,255,.6); }
.toi .o-vien .tich b { color: #fff; }
.thu-chot.toi .thu-than { color: rgba(255,255,255,.85); }
.thu-chot.toi .thu-than b { color: #fff; }
.thu-chot .ps { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.7); }
.thu-chot .ps b { color: var(--vang-logo); }

/* Sửa sau lần chụp 27/10/2026 */
.hero-trang.co-anh .hero-trang-luoi { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 40px; }
.chat-thu { grid-template-columns: 150px minmax(0, 1fr); }
.chat-thu .ct-bb.khach { color: #18181b; }
.ht-buoc[hidden] { display: none; }
.ht-dau { padding-right: 150px; }
.ht-dau span { margin-left: 6px; color: var(--chu-phu); font-size: 15px; }
@media (max-width: 1020px) {
  .hero-trang.co-anh .hero-trang-luoi { grid-template-columns: minmax(0, 1fr); }
  .chat-thu { grid-template-columns: minmax(0, 1fr); }
  .ht-dau { padding-right: 110px; }
}

/* 27/10 vòng 3: thẻ kênh căn giữa · cột MAGi nổi trong bảng so sánh · khối Bộ AI Agent · thư chốt nền sáng */
.kenh-luoi .the { align-items: center; text-align: center; }
.kenh-luoi .the .logo-kenh { width: 48px; height: 48px; }
.kenh-luoi .the .o-icon { width: 48px; height: 48px; background: none; border: 0; color: var(--mag-xanh); }
.kenh-luoi .the .o-icon svg { width: 46px; height: 46px; }
.bang.cot-magi th:last-child, .bang.cot-magi td:last-child { background: var(--mag-xanh-nhat); }
.bang.cot-magi thead th:last-child { color: var(--mag-xanh); }
.bang.cot-magi td:last-child b { font-weight: 600; color: var(--chu); }
.bang.cot-magi td:last-child b::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; background: var(--ok, #16a34a); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.bo-agent .ba-dau { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.bo-agent .ba-dau .h2 { margin-inline: auto; }
.bo-agent .ba-dau p { color: rgba(255,255,255,.65); margin: 16px 0 0; }
.ba-luoi { list-style: none; margin: 0 auto; padding: 0; max-width: 1110px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ba-the { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #fff; text-decoration: none; transition: background .2s, border-color .2s; }
.ba-the:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); }
.ba-the img { width: 48px; height: 48px; border-radius: 50%; margin-bottom: 10px; }
.ba-the b { font-family: var(--font-tieu-de); font-weight: 500; font-size: 17px; }
.ba-the span { color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.5; }
.ba-the em { position: absolute; top: 16px; right: 16px; font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: rgba(34,197,94,.16); color: #4ade80; }
.ba-the.dang-xem { border-color: rgba(255,199,7,.45); cursor: default; }
.ba-tong { justify-content: center; background: var(--mag-xanh); border-color: var(--mag-xanh); }
.ba-tong:hover { background: #2a48ff; border-color: #2a48ff; }
.ba-tong b svg { width: 16px; height: 16px; vertical-align: -2px; }
.ba-tong span { color: rgba(255,255,255,.85); }
.thu-chot:not(.toi) .ps { border-top-color: var(--vien); color: var(--chu-phu); }
.thu-chot:not(.toi) .ps b { color: var(--mag-xanh); }
@media (max-width: 1020px) { .ba-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ba-luoi { grid-template-columns: 1fr; } }
.bang.cot-magi td:last-child b.khong-tich::before { content: none; }
