/* Góp lửa - khối trên trang truyện, hộp thoại, dòng trong biến động Lượng.
 *
 * Tệp RIÊNG, nạp qua @section Head của đúng hai trang cần nó (trang chi tiết truyện và biến động
 * Lượng), đúng cách comment.css/messaging.css đang làm. Không nhét vào qtn-v2.css: tệp đó nạp ở MỌI
 * trang khu độc giả, và một bộ luật mới 200 dòng nằm chung với hộp thoại tặng Lượng là dựng lại đúng
 * kiểu hai bộ luật đè nhau theo từng thuộc tính đã phải trả giá một lần.
 *
 * ⚠ Nạp SAU qtn-v2.css (section Head render sau khối link của layout) nên các luật .is-boost dưới đây
 * đè được lên bộ .qtn-donate-* mà không cần !important.
 *
 * ⚠ Icon tiền dùng <i class="qtn-luong"></i> (SVG mask), KHÔNG dùng glyph hình thoi của Phosphor.
 */

/* ============ Khối trên trang truyện ============ */
.qtn-boost-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 18px;
  grid-template-areas:"title cta" "sep sep" "stats stats" "mine mine" "panel panel" "list list" "more more";
  align-items:start;}
.qtn-boost-title{grid-area:title;min-width:0;display:grid;gap:5px;}
.qtn-boost-title h2{margin:0;display:flex;align-items:center;gap:9px;color:var(--qtn-heading)!important;
  font-family:var(--qtn-font-display)!important;font-size:19px;font-weight:900;letter-spacing:-.02em;}
.qtn-boost-title h2 i{color:var(--qtn-coral);font-size:22px;}
.qtn-boost-title p{margin:0;color:var(--qtn-muted)!important;font-size:12.8px;font-weight:750;line-height:1.55;}

.qtn-boost-ctawrap{grid-area:cta;display:grid;gap:6px;justify-items:end;}
.qtn-boost-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;
  padding:10px 22px;border-radius:var(--qtn-radius-pill);background:rgb(var(--c-gold)/.14);
  border:1.5px solid rgb(var(--c-gold)/.45);color:var(--qtn-heading)!important;
  font-family:var(--qtn-font-display)!important;font-size:13.6px;font-weight:900;cursor:pointer;
  transition:var(--qtn-ease);white-space:nowrap;}
.qtn-boost-btn i{color:var(--qtn-gold-text);font-size:17px;}
.qtn-boost-btn:hover{transform:var(--qtn-lift);background:rgb(var(--c-gold)/.2);border-color:rgb(var(--c-gold)/.6);}
/* Vỏ chờ fragment: nhìn y hệt nút thật để không nhảy layout, nhưng không bấm được. */
.qtn-boost-btn.is-static{pointer-events:none;}

.qtn-boost-sep{grid-area:sep;height:0;border-top:1.5px dashed var(--qtn-line-dashed);}

.qtn-boost-stats{grid-area:stats;display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.qtn-boost-stat{min-height:76px;box-sizing:border-box;padding:13px 15px;border-radius:16px;
  background:var(--qtn-surface-soft);border:1px solid var(--qtn-line-2);display:grid;gap:4px;align-content:center;}
.qtn-boost-stat em{color:var(--qtn-muted)!important;font-size:11.2px;font-weight:850;font-style:normal;
  text-transform:uppercase;letter-spacing:.06em;}
.qtn-boost-stat b{display:inline-flex;align-items:center;gap:6px;color:var(--qtn-gold-text)!important;
  font-family:var(--qtn-font-display)!important;font-size:21px;font-weight:900;letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;}
.qtn-boost-stat b i{font-size:16px;}
.qtn-boost-stat b small{font-size:12px;color:var(--qtn-muted)!important;font-weight:800;letter-spacing:0;}
.qtn-boost-stat.is-people b{color:var(--qtn-heading)!important;}
.qtn-boost-stat.is-people b i{color:var(--qtn-teal);}
.qtn-boost-skel-stat{min-height:76px;border-radius:16px;}

.qtn-boost-mine{grid-area:mine;display:flex;align-items:center;gap:9px;padding:11px 15px;border-radius:14px;
  background:rgb(var(--c-gold)/.09);border:1px solid rgb(var(--c-gold)/.32);color:var(--qtn-body)!important;
  font-size:13px;font-weight:750;}
.qtn-boost-mine i{color:var(--qtn-gold-text);font-size:16px;flex:0 0 auto;}
.qtn-boost-mine b{color:var(--qtn-gold-text)!important;font-family:var(--qtn-font-display)!important;font-weight:900;}

.qtn-boost-owner{display:flex;align-items:flex-start;gap:9px;padding:12px 15px;border-radius:14px;
  background:rgb(var(--c-teal)/.08);border:1px solid rgb(var(--c-teal)/.32);color:var(--qtn-body)!important;
  font-size:12.8px;font-weight:750;line-height:1.6;text-align:left;}
.qtn-boost-owner i{color:var(--qtn-teal);font-size:16px;flex:0 0 auto;margin-top:2px;}
.qtn-boost-owner b{color:var(--qtn-teal-dark)!important;font-family:var(--qtn-font-display)!important;
  font-weight:900;white-space:nowrap;}

.qtn-boost-panel{grid-area:panel;}
/* .qtn-state-panel mặc định có margin 52px cho màn trống cả trang - trong một card thì thu lại. */
.qtn-boost-panel .qtn-state-panel{margin:6px auto;}

.qtn-boost-list{grid-area:list;display:grid;gap:10px;}
.qtn-boost-row{display:grid;grid-template-columns:34px minmax(0,1fr);gap:4px 11px;align-items:center;
  padding:11px 13px;border-radius:15px;background:rgb(var(--c-card)/.92);border:1px solid var(--qtn-line-2);}
.qtn-boost-av{grid-row:1/2;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
  color:#fff;font-family:var(--qtn-font-display)!important;font-size:14px;font-weight:900;
  background:var(--qtn-grad-primary);flex:0 0 auto;overflow:hidden;}
.qtn-boost-av img{width:100%;height:100%;object-fit:cover;display:block;}
.qtn-boost-av.v1{background:linear-gradient(135deg,rgb(var(--c-teal)),rgb(var(--c-teal-dark)));}
.qtn-boost-av.v2{background:var(--qtn-grad-gold);}
.qtn-boost-av.v3{background:linear-gradient(135deg,rgb(var(--c-coral)),rgb(var(--c-pink)));}
.qtn-boost-rline{min-width:0;display:flex;align-items:baseline;gap:5px 10px;flex-wrap:wrap;}
.qtn-boost-rline a{min-width:0;max-width:100%;color:var(--qtn-heading)!important;
  font-family:var(--qtn-font-display)!important;font-size:13.6px;font-weight:900;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
.qtn-boost-rline a:hover{color:var(--qtn-pink)!important;}
.qtn-boost-rline b{display:inline-flex;align-items:center;gap:4px;color:var(--qtn-gold-text)!important;
  font-family:var(--qtn-font-display)!important;font-size:13.4px;font-weight:900;white-space:nowrap;
  font-variant-numeric:tabular-nums;}
.qtn-boost-rline b i{font-size:12px;}
.qtn-boost-rline em{color:var(--qtn-faint)!important;font-size:11.8px;font-weight:750;font-style:normal;white-space:nowrap;}
/* Vỏ bọc lời nhắn giữ grid-column của lưới dòng; chữ co được, nút không - nút chỉ chiếm đúng bề rộng
   của nó và ô chữ ăn hết phần còn lại thay vì bị bóp thành cột hẹp. */
.qtn-boost-msgwrap{grid-column:2;min-width:0;display:flex;align-items:flex-start;gap:10px;}
/* Kẹp 2 dòng và KHÔNG có nút mở rộng: 5 lời nhắn cùng lúc thì 5 nút là 5 chỗ layout nhảy. Ai muốn đọc
   đủ thì bấm "Xem thêm N khách". pre-line giữ đúng chỗ người ta xuống dòng.
   ⚠ Mọi khai báo cho lời nhắn phải nằm TRONG khối ngay dưới đây. Đừng đẻ selector con nhắm vào nó qua
   vỏ bọc: guard canh pre-line dò KHỐI ĐẦU TIÊN khớp tên class, nên một khối con đứng trước sẽ nuốt mất
   phép dò đó (và chính chú thích này cũng phải tránh viết tên class kèm dấu ngoặc nhọn). */
.qtn-boost-msg{grid-column:2;min-width:0;flex:1 1 auto;margin:0;color:var(--qtn-sub)!important;font-size:12.6px;font-weight:700;
  line-height:1.55;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;}

/* Nút ẩn lời nhắn - CHỈ ban quản trị nhận được. Dựng riêng ở đây chứ không mượn .qtn-abtn của khu quản
   trị: admin.css không nạp trên trang truyện, kéo cả tệp đó về chỉ vì một cái nút là đổi hẳn khối lượng
   CSS của trang đọc. Dáng bám đúng bộ .qtn-abtn.is-quiet để hai khu không nói hai giọng. */
.qtn-boost-hide{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;padding:5px 10px;
  min-height:30px;border:1px solid transparent;border-radius:var(--qtn-radius-pill);background:transparent;
  color:var(--qtn-muted)!important;font-family:inherit;font-size:11.8px;font-weight:800;line-height:1;
  white-space:nowrap;cursor:pointer;transition:var(--qtn-ease);}
.qtn-boost-hide:hover{color:var(--qtn-pink)!important;background:var(--qtn-surface-soft);}
.qtn-boost-hide i{font-size:14px;}
.qtn-boost-hide.htmx-request{pointer-events:none;opacity:.6;}
/* Chỗ trống sau khi ẩn - nói ra thành lời để người vừa bấm phân biệt được "xong" với "lệnh rơi". */
.qtn-boost-msghid{display:inline-flex;align-items:center;gap:6px;margin:0;color:var(--qtn-faint)!important;
  font-size:12.2px;font-weight:750;font-style:italic;}
.qtn-boost-msghid i{font-size:14px;font-style:normal;}
.qtn-boost-skel-row{height:58px;border-radius:15px;}

.qtn-boost-more{grid-area:more;justify-self:center;}
.qtn-boost-more .qtn-btn{min-height:44px;}
/* htmx tự gắn .htmx-request lên chính nút đang gọi trong suốt lúc chờ - nút hiện spinner mà không cần
   một dòng script nào. */
.qtn-boost-more .qtn-spinner{width:15px;height:15px;border-width:2px;display:none;}
.qtn-boost-more .qtn-btn.htmx-request .qtn-spinner{display:inline-block;}
.qtn-boost-more .qtn-btn.htmx-request{pointer-events:none;opacity:.72;}
.qtn-boost-more .qtn-btn.htmx-request > i{display:none;}

@media(max-width:720px){
  .qtn-boost-grid{grid-template-columns:1fr;
    grid-template-areas:"title" "sep" "stats" "cta" "mine" "panel" "list" "more";gap:13px;}
  .qtn-boost-ctawrap{justify-items:stretch;}
  .qtn-boost-btn{width:100%;}
  .qtn-boost-stat b{font-size:18.5px;}
  .qtn-boost-rline{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;}
  .qtn-boost-rline span.meta{display:flex;align-items:baseline;gap:10px;}
  /* Điện thoại: nút xuống hẳn dòng dưới. Để nó ngồi cùng hàng thì trên một dòng rộng ~330px, phần
     nowrap của nút ăn gần một phần ba và ô chữ còn lại thành cột hẹp - chữ vẫn xuống dòng đàng hoàng
     nên không phép đo tràn nào kêu, thứ hỏng chỉ là lời nhắn đọc ra như chữ dồn cục.
     Đổi hướng cả vỏ, KHÔNG viết selector con của .qtn-boost-msg - xem cảnh báo ở khối chính.
     ⚠ Phải trả align-items về stretch: đổi sang cột thì trục ngang thành trục PHỤ, và flex-start ở đó
     bóp ô chữ về đúng bề rộng chữ (đo được 217px trên 255px) thay vì cho nó ăn hết dòng. */
  .qtn-boost-msgwrap{flex-direction:column;align-items:stretch;}
  .qtn-boost-hide{align-self:flex-start;}
}
@media(min-width:721px){.qtn-boost-rline span.meta{display:contents;}}

/* ============ Hộp thoại: MỘT class modifier trên bộ .qtn-donate-* ============ */
/* 520px theo thiết kế, rộng hơn 460px của hộp thoại tặng Lượng; và trần chiều cao nới theo.
   Không phải chuyện thẩm mỹ: hộp thoại này có thêm dải cam kết giữ hộ, mà ở kích thước cũ câu đó bị
   đẩy xuống DƯỚI vùng cuộn của thân hộp thoại - đo được là thiếu 77px ở khổ 1440x900. Câu quan trọng
   nhất về tiền của người ta không được phép chỉ hiện ra cho ai nghĩ tới việc cuộn.
   Giữ nguyên thứ tự bố cục PO đã duyệt, chỉ cho thẻ cao thêm. */
.qtn-donate-root.is-boost .qtn-donate-card{width:min(520px,100%);max-height:min(92dvh,820px);}

/* Ảnh bìa thay ảnh đại diện tròn - tỷ lệ 2/3 của bìa truyện. */
.qtn-donate-root.is-boost .qtn-donate-mhead .av{width:40px;height:54px;min-width:40px;border-radius:8px;
  box-shadow:0 6px 14px rgb(var(--c-shadow-ink)/.2);}
.qtn-donate-root.is-boost .qtn-donate-mhead small{color:var(--qtn-muted)!important;
  font-family:var(--qtn-font-display)!important;font-size:11.4px;font-weight:900;text-transform:uppercase;
  letter-spacing:.05em;}
.qtn-donate-root.is-boost .qtn-donate-mhead b{font-size:16px;line-height:1.3;}

/* Lời nhắn góp lửa CÔNG KHAI - dải này nói đúng điều đó, khác hẳn dải "không đăng công khai" của tặng. */
.qtn-boost-public{display:flex;align-items:flex-start;gap:7px;color:var(--qtn-muted)!important;
  font-size:12px;font-weight:750;line-height:1.55;}
.qtn-boost-public i{color:var(--qtn-teal);font-size:14px;flex:0 0 auto;margin-top:1px;}

/* Cam kết giữ hộ - thay chỗ dải "tặng rồi là không lấy lại được" của hộp thoại tặng Lượng. */
.qtn-boost-pledge{display:flex;align-items:flex-start;gap:10px;padding:13px 15px;border-radius:14px;
  background:var(--qtn-surface-soft);border:1px solid var(--qtn-line-2);color:var(--qtn-sub)!important;
  font-size:12.4px;font-weight:750;line-height:1.6;}
.qtn-boost-pledge i{color:var(--qtn-gold-text);font-size:16px;flex:0 0 auto;margin-top:1px;}

/* ============ Dòng góp lửa trong biến động Lượng ============ */
/* Chỗ DUY NHẤT người góp tra được tiền của mình đang ở đâu - thiếu badge thì dòng trừ tiền đọc y hệt
   một khoản đã mất. */
.qtn-boost-badge{display:inline-flex;align-items:center;gap:5px;margin-top:5px;padding:4px 10px;
  border-radius:var(--qtn-radius-pill);background:rgb(var(--c-gold)/.14);border:1px solid rgb(var(--c-gold)/.36);
  color:var(--qtn-gold-text)!important;font-family:var(--qtn-font-display)!important;font-size:11.4px;
  font-weight:900;white-space:nowrap;width:fit-content;}
.qtn-boost-badge i{font-size:12px;}
.qtn-boost-badge.is-released{background:rgb(var(--c-teal)/.12);border-color:rgb(var(--c-teal)/.34);
  color:var(--qtn-teal-dark)!important;}
.qtn-boost-badge.is-refunded{background:rgb(var(--c-text)/.07);border-color:var(--qtn-line-2);
  color:var(--qtn-muted)!important;}

/* ============ Ô gộp trên dashboard CTV (.qtn-boost-dg-*) ============ */
/* dg = dịch giả. Đây là KÝ QUỸ Quán đang giữ hộ, KHÔNG phải thu nhập - và ô nằm ngay dưới khối thu
 * nhập vàng trên cùng một màn, nên phải khác hẳn nó bằng cả chữ lẫn hình, nếu không CTV đọc thành
 * "tiền tôi đang có" rồi mở ví không thấy đâu.
 *
 * Sáu thứ tách bạch, không thứ nào một mình đủ: con số màu NGỌC (vàng trong khu CTV nghĩa là tiền đã
 * là của mình), nền phẳng không gradient, viền ĐỨT (trong bộ này nét đứt đã mang sẵn nghĩa "chưa
 * chốt"), cỡ chữ 28/24px cố ý không đứng ngang hàng với 42px của hero, chip "Chưa vào ví" dính sát con
 * số, và câu "Không tính vào doanh thu ở trên".
 *
 * ⚠ Ô này KHÔNG được mượn .qtn-rev-hero/.qtn-rev-num/.qtn-rev-stat/.qtn-rev-cell/.qtn-earn-val - mượn
 * một class trong đó là mất sạch sáu thứ trên trong một dòng diff trông vô hại.
 *
 * ⚠ Cả họ .qtn-boost-* phải ở TRONG tệp này, không tách sang translator.css: hai bộ cùng tên ở hai tệp
 * đè nhau theo từng thuộc tính là kiểu va chạm đã phải trả giá một lần.
 */
.qtn-boost-dg{padding:22px;}
.qtn-boost-dg-head{display:grid;gap:4px;margin:0 0 16px;}
.qtn-boost-dg-head h2{margin:0;display:flex;align-items:center;gap:9px;color:var(--qtn-heading)!important;
  font-family:var(--qtn-font-display)!important;font-size:19px;font-weight:900;letter-spacing:-.02em;}
.qtn-boost-dg-head h2 i{color:var(--qtn-coral);font-size:22px;}
/* Câu chống đọc nhầm nằm NGAY DƯỚI tiêu đề, tức người đọc gặp nó TRƯỚC khi gặp con số. */
.qtn-boost-dg-head p{margin:0;color:var(--qtn-muted)!important;font-size:12.8px;font-weight:750;}
.qtn-boost-dg-body{display:grid;gap:16px;}
.qtn-boost-dg-label{display:block;color:var(--qtn-muted)!important;font-family:var(--qtn-font-display)!important;
  font-size:11.2px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;font-style:normal;}
.qtn-boost-dg-sum{padding:15px 17px 14px;border-radius:16px;background:rgb(var(--c-teal)/.06);
  border:1.5px dashed rgb(var(--c-teal)/.42);display:grid;gap:8px;justify-items:start;}
.qtn-boost-dg-numrow{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;}
/* --qtn-teal-dark chứ KHÔNG --qtn-teal: bản nhạt hơn không đạt 4,5:1 trên nền ngọc 6% của khối này. */
.qtn-boost-dg-num{display:inline-flex;align-items:baseline;gap:7px;color:var(--qtn-teal-dark)!important;
  font-family:var(--qtn-font-display)!important;font-size:24px;font-weight:900;letter-spacing:-.02em;
  line-height:1.05;font-variant-numeric:tabular-nums;}
/* Icon Lượng vẽ bằng background:currentColor nên tự sang màu ngọc theo con số - đừng đặt màu riêng. */
.qtn-boost-dg-num .qtn-luong{width:18px;height:18px;align-self:center;}
.qtn-boost-dg-num small{font-size:12.5px;font-weight:800;color:var(--qtn-muted);letter-spacing:0;}
.qtn-boost-dg-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;
  border-radius:var(--qtn-radius-pill);background:rgb(var(--c-teal)/.10);border:1px solid rgb(var(--c-teal)/.4);
  color:var(--qtn-teal-dark)!important;font-family:var(--qtn-font-display)!important;font-size:11.6px;
  font-weight:900;white-space:nowrap;}
.qtn-boost-dg-chip i{font-size:14px;}
.qtn-boost-dg-count{color:var(--qtn-muted)!important;font-size:12.4px;font-weight:750;font-style:normal;}
.qtn-boost-dg-note{display:flex;align-items:flex-start;gap:7px;margin:12px 0 0;color:var(--qtn-sub)!important;
  font-size:12.6px;font-weight:750;line-height:1.6;}
.qtn-boost-dg-note i{color:var(--qtn-teal);font-size:15px;flex:0 0 auto;margin-top:2px;}
.qtn-boost-dg-right{border-top:1.5px dashed var(--qtn-line-dashed);padding-top:16px;min-width:0;}
.qtn-boost-dg-right > .qtn-boost-dg-label{margin:0 0 11px;}
.qtn-boost-dg-list{display:grid;gap:13px;}
.qtn-boost-dg-row{display:grid;grid-template-columns:34px minmax(0,1fr);gap:3px 11px;align-items:start;}
.qtn-boost-dg-av{grid-row:1/4;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
  color:#fff;font-family:var(--qtn-font-display)!important;font-size:14px;font-weight:900;}
.qtn-boost-dg-av.v0{background:linear-gradient(135deg,rgb(var(--c-teal)),rgb(var(--c-teal-dark)));}
.qtn-boost-dg-av.v1{background:var(--qtn-grad-gold);}
.qtn-boost-dg-av.v2{background:var(--qtn-grad-primary);}
.qtn-boost-dg-av.v3{background:linear-gradient(135deg,rgb(var(--c-pink)),rgb(var(--c-shadow-ink)/.88));}
.qtn-boost-dg-top{display:flex;align-items:baseline;gap:3px 10px;min-width:0;}
/* Tên khách cắt bằng ba chấm chứ không xuống dòng: tên tiếng Việt đầy đủ dài tới gần 30 ký tự, cho
   xuống dòng là đẩy số Lượng và thời gian trôi khỏi hàng. */
.qtn-boost-dg-top .name{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:var(--qtn-heading)!important;font-family:var(--qtn-font-display)!important;font-size:13.6px;font-weight:900;}
.qtn-boost-dg-amt{display:inline-flex;align-items:center;gap:4px;color:var(--qtn-gold-text)!important;
  font-family:var(--qtn-font-display)!important;font-size:13.2px;font-weight:900;white-space:nowrap;
  font-variant-numeric:tabular-nums;}
.qtn-boost-dg-amt .qtn-luong{width:12px;height:12px;}
.qtn-boost-dg-top em{color:var(--qtn-faint)!important;font-size:11.8px;font-weight:750;font-style:normal;
  white-space:nowrap;}
.qtn-boost-dg-story{position:relative;display:inline-flex;align-items:center;gap:4px;max-width:100%;
  min-width:0;color:var(--qtn-teal-dark)!important;font-size:12.4px;font-weight:800;}
/* Vùng chạm 44px cho ngón tay mà không cần cho chữ cao thêm - lớp phủ vô hình quanh liên kết. */
.qtn-boost-dg-story:after{content:"";position:absolute;inset:-13px -5px;}
.qtn-boost-dg-story > span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.qtn-boost-dg-story i{font-size:11px;flex:0 0 auto;}
.qtn-boost-dg-story:hover{color:var(--qtn-pink)!important;}
/* Kẹp đúng 2 dòng và KHÔNG có nút mở rộng từng dòng: năm lời nhắn là năm chỗ layout nhảy trên một màn
   vốn đã dài. Ai muốn đọc đủ thì bấm tên truyện. */
.qtn-boost-dg-msg{margin:0;color:var(--qtn-sub)!important;font-size:12.6px;font-weight:700;line-height:1.55;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.qtn-boost-dg-nomsg{margin:2px 0 0;color:var(--qtn-muted)!important;font-size:12.8px;font-weight:750;}
.qtn-boost-dg-foot{margin:14px 0 0;color:var(--qtn-muted)!important;font-size:12px;font-weight:750;}
/* .qtn-state-panel mặc định có margin 52px cho màn trống cả trang - trong một ô thì thu lại. */
.qtn-boost-dg .qtn-state-panel{margin:8px auto;}
.qtn-boost-dg .qtn-state-panel .qtn-btn{min-height:44px;}
@media(min-width:1024px){
  .qtn-boost-dg-body{grid-template-columns:320px minmax(0,1fr);gap:26px;align-items:start;}
  .qtn-boost-dg-right{border-top:0;padding-top:0;}
  .qtn-boost-dg-num{font-size:28px;}
  .qtn-boost-dg-num .qtn-luong{width:20px;height:20px;}
  /* Cột trái chỉ 320px: chip xuống dòng riêng dưới con số, để cùng hàng là ép con số xuống dòng. */
  .qtn-boost-dg-numrow{flex-direction:column;align-items:flex-start;gap:9px;}
}
@media(min-width:721px){.qtn-boost-dg-top .meta{display:contents;}}
@media(max-width:720px){
  .qtn-boost-dg{padding:16px;}
  /* Hàng đầu tách hai dòng: tên trên, số Lượng + thời gian dưới. */
  .qtn-boost-dg-top{display:grid;grid-template-columns:minmax(0,1fr);}
  .qtn-boost-dg-top .meta{display:flex;align-items:baseline;gap:10px;}
  /* Điện thoại chỉ hiện 3 dòng. Máy chủ vẫn dựng đủ 5 - một luật CSS rẻ hơn hẳn một nhánh truy vấn
     thứ hai, và ở khổ này mỗi dòng cao ~100px nên 5 dòng là 500px cuộn cho một khối phụ. */
  .qtn-boost-dg-list .qtn-boost-dg-row:nth-child(n+4){display:none;}
}
