/* ===== KALIN — Đợt 23: dàn lại hộp thoại "Tài khoản của tôi" cho gọn, đều, đẹp ===== */
.dlg.hx-hub .dlg-b{display:flex;flex-direction:column;gap:12px;padding:16px 18px 20px}
.hx-stack{display:flex;flex-direction:column;gap:10px;width:100%}

/* Khối đầu: ảnh đại diện + tên + @tên đăng nhập */
.hx-head{display:flex;align-items:center;gap:14px;width:100%;padding:2px 2px 14px;margin:0 0 2px;border-bottom:1px solid var(--line,#e5e8f1)}
.hx-head > :first-child{flex:none}
.hx-who{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.hx-who b{display:block;font-size:17px;font-weight:800;line-height:1.25;color:var(--ink,#0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hx-who small{display:block;font-size:13px;font-weight:600;color:var(--ink3,#94a3b8)}

/* Mỗi dòng chức năng = 1 thẻ: [biểu tượng] [tiêu đề + mô tả] [›] */
.dlg.hx-hub button.hx-item{
  display:flex;align-items:center;gap:14px;width:100%;margin:0;padding:12px 14px;
  text-align:left;font:inherit;color:var(--ink,#0f172a);cursor:pointer;
  background:var(--panel2,#f7f8fc);border:1px solid var(--line,#e5e8f1);border-radius:16px;
  -webkit-appearance:none;appearance:none;transition:background .15s,border-color .15s,transform .15s,box-shadow .15s}
.dlg.hx-hub button.hx-item:hover{background:rgba(79,70,229,.07);border-color:rgba(79,70,229,.35);transform:translateY(-1px);box-shadow:0 6px 16px rgba(79,70,229,.10)}
.dlg.hx-hub button.hx-item:active{transform:translateY(0);box-shadow:none}
.dlg.hx-hub button.hx-item:focus-visible{outline:2px solid var(--brand,#4f46e5);outline-offset:2px}
.hx-ic{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:13px;font-size:22px;line-height:1;background:rgba(79,70,229,.10)}
.hx-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.hx-tx b{display:block;font-size:15px;font-weight:700;line-height:1.3;color:var(--ink,#0f172a)}
.hx-tx small{display:block;font-size:12.5px;font-weight:500;line-height:1.4;color:var(--ink2,#475569)}
.hx-ch{flex:none;font-size:24px;line-height:1;color:var(--ink3,#94a3b8);padding-left:2px}

/* Nút Đăng xuất: tông đỏ, tách riêng một nhịp */
.dlg.hx-hub button.hx-item.hx-danger{margin-top:6px;background:#fee2e2;border-color:#fecaca}
.dlg.hx-hub button.hx-item.hx-danger:hover{background:#fecaca;border-color:#f87171;box-shadow:0 6px 16px rgba(220,38,38,.12)}
.hx-danger .hx-ic{background:rgba(220,38,38,.14)}
.hx-danger .hx-tx b{color:#b91c1c}
.hx-danger .hx-tx small{color:#b4474a}
.hx-danger .hx-ch{color:#e08a8a}

@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .dlg.hx-hub button.hx-item.hx-danger{background:rgba(220,38,38,.16);border-color:rgba(248,113,113,.35)}
  :root:not([data-theme="light"]) .hx-danger .hx-tx b{color:#fca5a5}
  :root:not([data-theme="light"]) .hx-danger .hx-tx small{color:#e0a3a3}
}
:root[data-theme="dark"] .dlg.hx-hub button.hx-item.hx-danger{background:rgba(220,38,38,.16);border-color:rgba(248,113,113,.35)}
:root[data-theme="dark"] .hx-danger .hx-tx b{color:#fca5a5}
:root[data-theme="dark"] .hx-danger .hx-tx small{color:#e0a3a3}

@media (max-width:480px){
  .dlg.hx-hub .dlg-b{padding:14px 14px 18px}
  .dlg.hx-hub button.hx-item{padding:11px 12px;gap:12px}
  .hx-ic{width:40px;height:40px;font-size:20px}
}
