/* Trang MAGi Báo giá (27/10/2026): khung nhóm chat ở hero, phiếu deal, khối tặng kèm MAGi Pháp chế. Màu MAG 2.0. */

/* Khung nhóm chat ở hero (dùng lại .ct-tem, .ct-ong, .ct-dau, .ct-logo của agent.css) */
.bg-nhom { position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: center; padding-top: 34px; }
.bg-kenh { display: grid; gap: 12px; }
.bg-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: 14px; font-weight: 600; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.bg-kenh button[aria-pressed="true"] { background: #fff; color: var(--mag-navy); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.bg-tele { background: #229ed9; color: #fff; }
.bg-tele .i { width: 18px; height: 18px; margin-left: -2px; }
.bg-khung { display: flex; flex-direction: column; border-radius: 24px; background: #0f1648; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 70px rgba(0,0,0,.45); overflow: hidden; }
.bg-tin { display: flex; flex-direction: column; gap: 10px; padding: 18px; height: 500px; overflow-y: auto; }
.bg-dong { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; transition: opacity .35s, transform .35s; }
.bg-dong small { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; opacity: .75; }
.bg-dong.sale { align-self: flex-end; background: #fff; color: #18181b; border-bottom-right-radius: 4px; }
.bg-dong.sale small { color: var(--mag-xanh); opacity: 1; }
.bg-dong.magi { align-self: flex-start; background: var(--mag-xanh); color: #fff; border-bottom-left-radius: 4px; }
.bg-dong.magi.chan { background: #3a1d22; border: 1px solid rgba(255,155,143,.5); }
.bg-dong.magi.chan small { color: #ff9b8f; opacity: 1; }
.bg-file { align-self: flex-start; display: grid; gap: 8px; width: 88%; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px dashed rgba(255,199,7,.5); transition: opacity .35s, transform .35s; }
.bg-file-ten { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font-size: 14px; font-weight: 600; }
.bg-file-ten .i { flex: none; width: 18px; height: 18px; color: var(--vang-logo); }
.bg-cho { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--vang-logo); }
.bg-cho .i { width: 16px; height: 16px; }
.bg-dong.an, .bg-file.an { opacity: 0; transform: translateY(6px); }
.bg-chan { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: rgba(255,255,255,.55); }
.bg-lai { padding: 7px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.bg-lai:hover, .bg-lai:focus-visible { border-color: var(--vang-logo); }
.bg-nhom.la-zalo .bg-khung { border-color: rgba(0,104,255,.5); }
@media (max-width: 1020px) {
  .bg-nhom { grid-template-columns: minmax(0, 1fr); padding-top: 84px; }
  .bg-nhom .ct-tem { top: 4px; }
  .bg-kenh { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bg-tin { height: 400px; }
}
@media (prefers-reduced-motion: reduce) { .bg-dong, .bg-file { transition: none; } }

/* Phiếu deal */
.phieu-deal { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; margin-top: 48px; }
.pd-chu h3 { margin-top: 10px; font-size: 26px; line-height: 1.25; }
.pd-chu p { margin-top: 10px; color: var(--chu-phu); }
.pd-the { position: relative; margin: 0; padding: 22px 24px 40px; border: 1px solid var(--vien); border-top: 4px solid var(--vang-logo); border-radius: 16px; background: #fff; display: grid; gap: 0; }
.pd-the > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--vien); }
.pd-the > div:last-of-type { border-bottom: 0; }
.pd-the dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mag-xanh); padding-top: 3px; }
.pd-the dd { margin: 0; font-size: 15px; color: var(--chu); }
.pd-mh { position: absolute; right: 22px; bottom: 12px; margin: 0; font-size: 13px; color: var(--chu-nhat); }
@media (max-width: 860px) {
  .phieu-deal { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pd-the > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Tặng kèm MAGi Pháp chế */
.tang-kem { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding: 40px; border: 1px solid #dbe2ff; border-radius: 20px; background: var(--mag-xanh-nhat); }
.tk-chu .nhan { display: inline-flex; align-items: center; gap: 8px; }
.tk-chu .nhan .i { width: 18px; height: 18px; }
.tk-chu .h2 { margin-top: 12px; }
.tk-chu p { margin-top: 14px; max-width: 60ch; color: var(--chu-phu); }
.tk-chu p b { color: var(--chu); }
.tk-chu .nut { margin-top: 24px; }
.tk-chu .nut .i { width: 16px; height: 16px; }
.tk-chuoi { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tk-chuoi li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 14px 18px; border: 1px solid #dbe2ff; border-radius: 14px; background: #fff; }
.tk-chuoi li:not(:last-child)::after { content: '↓'; position: absolute; left: 32px; bottom: -14px; z-index: 1; width: 18px; text-align: center; background: var(--mag-xanh-nhat); color: var(--mag-xanh); font-weight: 600; line-height: 16px; }
.tk-chuoi span { grid-row: span 2; font-family: var(--font-tieu-de); font-size: 22px; color: var(--mag-xanh); }
.tk-chuoi li:first-child span { color: var(--chu-nhat); }
.tk-chuoi b { font-size: 16px; }
.tk-chuoi small { font-size: 13px; color: var(--chu-phu); }
@media (max-width: 860px) {
  .tang-kem { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 24px 20px; }
}
