/* =====================================================================
   💌 แชทส่วนตัวกับแอดมิน · 📥 กล่องข้อความ · 🎁 ใช้ของรางวัล
   (ใช้หน้าตาเดียวกับแชทรวม css/chat.css แล้วเติมเฉพาะส่วนที่ต่าง)
   ===================================================================== */
.dm-top{gap:10px}.dm-top .av,.dm-top .cha-crown{width:38px;height:38px;flex:none}
.dm-top .ic{font-size:1rem;padding:6px 10px;flex:none}
.dm-who{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.dm-who b{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-who small{font-size:.74rem;color:#ffffffaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dmc .chl{background:linear-gradient(180deg,#140832cc,#0c0624cc)}

/* กล่องข้อความ (แอดมิน) */
.dmrow{cursor:pointer;position:relative}
.dmrow .m small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.dmrow.new{background:linear-gradient(90deg,#ff3d6e22,#ffffff08);border-color:#ff8fa877}
.dmrow.new .m b{color:#fff}
.dmr-r{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none;margin-left:6px}
.dmr-r small{font-size:.7rem;color:#ffffff88}
.dmn{font-style:normal;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#ff3d6e;color:#fff;font-size:.7rem;font-weight:800;line-height:20px;text-align:center}
.dmrq{display:inline-block;font-size:.68rem;font-weight:800;padding:1px 8px;border-radius:10px;background:linear-gradient(180deg,#ffe27a,#ffb02e);color:#3a1500;vertical-align:1px}
.dmpk{display:flex;flex-direction:column;gap:6px;max-height:52vh;overflow:auto;margin:6px 0 4px}
.dmpk .row{width:100%;text-align:left;cursor:pointer}

/* การ์ดขอใช้ของในแชท */
.chm.dmk .chb{padding:0;background:none;border:0;box-shadow:none}
.dmu{width:min(290px,72vw);border-radius:20px;overflow:hidden;border:2px solid #ffd56b;background:linear-gradient(160deg,#3b1a78,#22104a);box-shadow:0 0 18px #ffd56b44,0 8px 22px #0007}
.dmu-h{padding:7px 12px;font-weight:800;font-size:.86rem;color:#3a1500;background:linear-gradient(90deg,#fff1a8,#ffc93c,#ffe27a)}
.dmu-c{display:flex;gap:10px;align-items:center;padding:10px 12px}
.dmu-im{width:66px;height:66px;flex:none;border-radius:14px;overflow:hidden;background:#fff8e1;display:flex;align-items:center;justify-content:center;font-size:2rem;border:2px solid #ffd56b88}
.dmu-im img{width:100%;height:100%;object-fit:cover}
.dmu-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.dmu-t b{font-size:.95rem;line-height:1.3;word-break:break-word}
.dmu-t small{font-size:.7rem;color:#ffd56b}
.dmst{font-size:.72rem;font-weight:800;padding:2px 9px;border-radius:10px;background:#ffffff1c;color:#ffffffcc}
.dmst.wait{background:#ffb02e33;color:#ffe27a}.dmst.ok{background:#3dd68c33;color:#9dffc8}
.dmu-b{display:flex;flex-direction:column;gap:6px;padding:0 12px 12px}.dmu-b .btn{margin:0}
.btn.gold{background:linear-gradient(180deg,#fff1a8,#ffc93c 55%,#e09a1a);color:#3a1500;border-color:#fff6}
.dmdone{padding:10px 14px;border-radius:16px;background:linear-gradient(135deg,#1f7a4f,#2a1d4a);border:1.5px solid #7dffb0;color:#eafff3;font-size:.92rem;line-height:1.45;max-width:300px;box-shadow:0 0 14px #3dd68c44}

/* ในกระเป๋า: ปุ่มใช้ / สถานะ */
.dmub{margin:6px 0 2px;padding:10px 12px;border-radius:14px;text-align:center;font-weight:800;font-size:.9rem}
.dmub.wait{background:#ffb02e22;border:1.5px solid #ffb02e88;color:#ffe27a}
.dmub.ok{background:#3dd68c22;border:1.5px solid #3dd68c88;color:#9dffc8}
.btn.dmuse{font-size:1.1rem;animation:dmGlow 1.8s ease-in-out infinite}
@keyframes dmGlow{0%,100%{box-shadow:0 0 0 #ffd56b00}50%{box-shadow:0 0 18px #ffd56baa}}
.dmtag{font-style:normal;font-size:.68rem;font-weight:800;padding:1px 7px;border-radius:9px;background:#ffb02e33;color:#ffe27a}
.dmtag.ok{background:#3dd68c33;color:#9dffc8}.dmtag.go{background:linear-gradient(90deg,#ffe27a,#ffb02e);color:#3a1500}

/* ตัวเลขยังไม่อ่านบนปุ่มเมนู (แท็บล่าง) */
.tbn-dm{background:#ff3d6e}
.dmpop{border-color:#ffd56b99}
.lite .btn.dmuse{animation:none}