/* Trang tổng AI Agent (27/10/2026): vòng xoay hero, danh sách có thẻ dính, bốn tầng phát sáng, trục so sánh, ứng dụng theo phòng ban.
   Bố cục theo mona.media/bo-ai-agent/, màu theo MAG 2.0: navy + vầng sáng xanh/vàng, không tím. */

/* ---------- Hero: câu tiêu chí + vòng xoay ---------- */
.tieu-chi { margin: 32px 0 0; padding-left: 18px; border-left: 3px solid var(--vang-logo); }
.tieu-chi span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.tieu-chi p { margin-top: 6px; font-family: var(--font-tieu-de); font-size: 28px; line-height: 1.25; color: #fff; }

.quy-dao { position: relative; width: min(520px, 100%); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; overflow: clip; overflow-clip-margin: 16px; }
.qd-vong { position: absolute; border-radius: 50%; pointer-events: none; }
.qd-vong-1 { inset: 9%; border: 1px dashed rgba(255,255,255,.2); }
.qd-vong-2 { inset: 27%; border: 1px solid rgba(255,199,7,.28); }
.qd-tam { position: absolute; inset: 32%; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 6px;
  background: radial-gradient(circle at 35% 30%, #4a66ff 0, var(--mag-xanh) 45%, #0c1d9e 100%);
  box-shadow: 0 0 0 10px rgba(23,54,245,.12), 0 0 90px rgba(23,54,245,.65); }
.qd-tam b { font-family: var(--font-tieu-de); font-size: clamp(22px, 7.5cqw, 38px); font-weight: 600; color: #fff; line-height: 1; }
.qd-tam span { font-size: clamp(9px, 2.4cqw, 12px); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--vang-logo); }
.qd-quay { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; animation: qd-quay 80s linear infinite; }
.qd-quay li { position: absolute; top: 50%; left: 50%; width: 17%; aspect-ratio: 1; margin: -8.5% 0 0 -8.5%;
  transform: rotate(var(--goc)) translateX(41cqw) rotate(calc(var(--goc) * -1)); }
.qd-quay a { display: block; width: 100%; height: 100%; border-radius: 50%; animation: qd-quay 80s linear infinite reverse; }
.qd-quay img { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 10px 28px rgba(0,0,0,.4); transition: box-shadow .3s, transform .3s; }
.qd-quay a:hover img, .qd-quay a:focus-visible img { transform: scale(1.12); box-shadow: 0 0 0 3px var(--vang-logo), 0 0 36px rgba(255,199,7,.45); }
.quy-dao:hover .qd-quay, .quy-dao:hover .qd-quay a, .quy-dao:focus-within .qd-quay, .quy-dao:focus-within .qd-quay a { animation-play-state: paused; }
@keyframes qd-quay { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .qd-quay, .qd-quay a { animation: none; } }

/* ---------- Danh sách: thẻ dính trái + danh sách phải ---------- */
.ds-agent { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: start; }
.ds-the { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 16px; color: #fff;
  background: radial-gradient(420px 260px at 20% 0%, rgba(23,54,245,.55), transparent 70%), var(--mag-navy); }
.ds-so { font-family: var(--font-mono, ui-monospace, monospace); font-size: 13px; color: rgba(255,255,255,.6); }
.ds-so b { font-family: var(--font-tieu-de); font-size: 34px; color: #fff; }
.ds-the img { width: 120px; height: 120px; border-radius: 50%; margin: 8px 0; transition: opacity .2s; }
.ds-ten { font-family: var(--font-tieu-de); font-size: 24px; font-weight: 500; }
.ds-vai { font-size: 14px; color: rgba(255,255,255,.72); }
.ds-thanh { height: 3px; margin: 10px 0 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.ds-thanh i { display: block; height: 100%; border-radius: 3px; background: var(--vang-logo); transition: width .3s; }
.ds-nhan-nho { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.ds-kenh { font-size: 14px; }
.ds-os-nhan { margin-top: 10px; }
.ds-os { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ds-os span { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; font-size: 12.5px; white-space: nowrap; font-weight: 600; color: rgba(255,255,255,.82); transition: border-color .2s, background .2s; }
.ds-os b { font-weight: 500; color: rgba(255,255,255,.45); }
.ds-os span.dang { border-color: var(--vang-logo); background: rgba(255,199,7,.1); color: #fff; }
.ds-hang { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ds-o { display: grid; grid-template-columns: 32px 64px minmax(0, 1fr); gap: 18px; padding: 24px; border: 1px solid var(--vien); border-radius: 14px; transition: border-color .2s, background .2s; scroll-margin-top: 96px; }
.ds-o.dang { border-color: var(--vien-dam); background: var(--nen-menu); }
.ds-stt { font-family: var(--font-mono, ui-monospace, monospace); font-size: 13px; color: var(--chu-nhat); padding-top: 4px; }
.ds-avatar { width: 64px; height: 64px; border-radius: 50%; }
.ds-avatar-trong { display: grid; place-items: center; border: 1px dashed var(--vien-dam); color: var(--chu-phu); }
.ds-noi { display: grid; gap: 8px; min-width: 0; }
.ds-noi h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 21px; }
.ds-noi h3 .chip { font-family: var(--font-noi-dung, inherit); }
.ds-vai-dong { font-size: 14px; font-weight: 600; color: var(--mag-xanh); }
.ds-noi > p:not(.ds-vai-dong) { color: var(--chu-phu); }
.ds-chan { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--vien); font-size: 14px; color: var(--chu-phu); }
.ds-khac { border-style: dashed; }
@media (max-width: 1020px) {
  .ds-agent { grid-template-columns: minmax(0, 1fr); }
  .ds-the { display: none; }
}
@media (max-width: 600px) {
  .ds-o { grid-template-columns: 48px minmax(0, 1fr); padding: 18px; gap: 14px; }
  .ds-stt { display: none; }
  .ds-avatar { width: 48px; height: 48px; }
}

/* ---------- Bốn tầng phát sáng ---------- */
.bon-tang { background: radial-gradient(760px 460px at 22% 55%, rgba(23,54,245,.38), transparent 70%), var(--mag-navy); }
.bt-luoi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.bt-chong { position: relative; height: 460px; }
.bt-lop { position: absolute; left: 50%; width: 300px; height: 300px; margin-left: -150px; border-radius: 30px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06); transform: rotateX(58deg) rotateZ(-40deg); transition: border-color .3s, box-shadow .3s, background .3s;
  display: flex; align-items: flex-end; gap: 10px; padding: 28px; color: #fff; }
.bt-lop span { font-family: var(--font-mono, ui-monospace, monospace); font-size: 13px; color: rgba(255,255,255,.6); }
.bt-lop b { font-family: var(--font-tieu-de); font-size: 26px; font-weight: 600; line-height: 1.1; }
.bt-lop-1 { top: -40px; z-index: 4; }
.bt-lop-2 { top: 40px; z-index: 3; }
.bt-lop-3 { top: 120px; z-index: 2; }
.bt-lop-4 { top: 200px; z-index: 1; }
.bt-nao { background: radial-gradient(circle at 25% 25%, rgba(74,102,255,.95), rgba(23,54,245,.75) 60%, rgba(12,29,158,.8)); border-color: rgba(120,140,255,.6); box-shadow: 0 0 70px rgba(23,54,245,.6); }
.bt-lop.dang { border-color: var(--vang-logo); box-shadow: 0 0 0 1px var(--vang-logo), 0 0 56px rgba(255,199,7,.38); }
.bt-lop.dang:not(.bt-nao) { background: rgba(255,199,7,.1); }
.bt-ds { list-style: none; margin: 0; padding: 0; display: grid; }
.bt-ds button { display: grid; gap: 4px; width: 100%; padding: 18px 22px; text-align: left; background: none; border: 0; border-left: 2px solid rgba(255,255,255,.14); color: #fff; cursor: pointer; font: inherit; }
.bt-ds button + * { margin-top: 0; }
.bt-nhan { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.55); }
.bt-ds b { font-family: var(--font-tieu-de); font-size: 26px; font-weight: 500; color: rgba(255,255,255,.62); transition: color .2s; }
.bt-mo { font-size: 15px; color: rgba(255,255,255,.68); }
.bt-ds button[aria-pressed="true"] { border-left-color: var(--vang-logo); }
.bt-ds button[aria-pressed="true"] b { color: #fff; }
@media (prefers-reduced-motion: reduce) { .bt-lop, .bt-ds b { transition: none; } }
@media (max-width: 1020px) {
  .bt-luoi { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bt-chong { height: 340px; transform: scale(.75); transform-origin: 50% 20%; margin-bottom: -60px; }
}

/* ---------- So sánh với tài khoản ChatGPT ---------- */
.dinh-nghia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; padding: 40px; border: 1px solid var(--vien); border-left: 4px solid var(--vang-logo); border-radius: 16px; }
.dn-tu { display: block; font-family: var(--font-tieu-de); font-size: clamp(48px, 7vw, 80px); font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.dn-loai { display: block; margin-top: 10px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 13px; color: var(--mag-vang-chu); }
.dn-trai p { margin-top: 18px; color: var(--chu-phu); }
.dn-y { margin: 0; padding: 0; list-style: none; counter-reset: dn; display: grid; gap: 18px; }
.dn-y li { counter-increment: dn; display: grid; grid-template-columns: 36px minmax(0, 1fr); font-size: 17px; }
.dn-y li::before { content: counter(dn) "."; font-family: var(--font-tieu-de); font-weight: 600; font-size: 20px; color: var(--mag-xanh); }
.truc-ss { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 200px; margin-top: 64px; }
.truc-ss::before { content: ''; position: absolute; left: 50%; top: 110px; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(var(--mag-xanh), var(--vang-logo)); opacity: .5; }
.truc-dau span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.truc-dau b { display: block; margin-top: 6px; font-family: var(--font-tieu-de); font-size: 30px; font-weight: 500; line-height: 1.15; }
.truc-dau.truc-trai { text-align: right; color: var(--chu-phu); }
.truc-dau.truc-phai span { color: var(--mag-xanh); }
.truc-hang { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 200px minmax(0, 1fr); align-items: center; padding: 18px 0; }
.truc-hang:first-of-type { margin-top: 24px; }
.truc-hang p { margin: 0; font-size: 17px; }
.truc-hang .truc-trai { text-align: right; color: var(--chu-phu); padding-right: 20px; }
.truc-hang .truc-phai { font-weight: 600; padding-left: 20px; }
.truc-nhan { position: relative; justify-self: center; padding: 6px 14px; border: 1.5px solid var(--vang-logo); border-radius: 999px; background: var(--nen); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 860px) {
  .dinh-nghia { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 24px; }
  .truc-ss { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .truc-ss::before { display: none; }
  .truc-dau.truc-trai { text-align: left; }
  .truc-dau.truc-phai { margin-top: 16px; }
  .truc-hang { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px 0; border-top: 1px solid var(--vien); }
  .truc-hang:first-of-type { margin-top: 20px; }
  .truc-nhan { order: -1; justify-self: start; }
  .truc-hang .truc-trai { text-align: left; padding: 0; }
  .truc-hang .truc-trai::before { content: 'ChatGPT: '; font-weight: 600; }
  .truc-hang .truc-phai { padding: 0; }
  .truc-hang .truc-phai::before { content: 'MAGi: '; color: var(--mag-xanh); }
}

/* ---------- Ứng dụng theo phòng ban ---------- */
.ung-ds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--chu); }
.ung-ds li { display: grid; grid-template-columns: 170px minmax(0, 1.15fr) minmax(0, 1.3fr) 230px; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--vien); }
.ung-so { font-family: var(--font-mono, ui-monospace, monospace); font-size: 13px; color: var(--chu-nhat); }
.ung-so b { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mag-xanh); }
.ung-ds h3 { font-size: 24px; }
.ung-ds p { color: var(--chu-phu); font-size: 15px; }
.ung-agent { display: flex; align-items: center; gap: 10px; justify-self: end; font-weight: 600; color: var(--chu); text-decoration: none; }
.ung-agent img { width: 40px; height: 40px; border-radius: 50%; }
.ung-agent:hover { color: var(--mag-xanh); }
@media (max-width: 1020px) {
  .ung-ds li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ung-agent { justify-self: start; margin-top: 4px; }
}
